| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/graphics/paint/PropertyTreeState.h" | 5 #include "platform/graphics/paint/PropertyTreeState.h" |
| 6 | 6 |
| 7 #include "platform/graphics/paint/GeometryMapper.h" | 7 #include "platform/graphics/paint/GeometryMapper.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 return &m_properties; | 66 return &m_properties; |
| 67 case PropertyTreeState::Effect: | 67 case PropertyTreeState::Effect: |
| 68 m_properties.setEffect(m_properties.effect()->parent()); | 68 m_properties.setEffect(m_properties.effect()->parent()); |
| 69 return &m_properties; | 69 return &m_properties; |
| 70 case PropertyTreeState::None: | 70 case PropertyTreeState::None: |
| 71 return nullptr; | 71 return nullptr; |
| 72 } | 72 } |
| 73 return nullptr; | 73 return nullptr; |
| 74 } | 74 } |
| 75 | 75 |
| 76 #if DCHECK_IS_ON() |
| 77 |
| 78 String PropertyTreeState::toTreeString() const { |
| 79 return transform()->toTreeString() + "\n" + clip()->toTreeString() + "\n" + |
| 80 effect()->toTreeString() + "\n" + scroll()->toTreeString(); |
| 81 } |
| 82 |
| 83 #endif |
| 84 |
| 76 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |