Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp

Issue 2647063002: Move property tree debugging code to platform/graphics/paint/ (try #2) (Closed)
Patch Set: none Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698