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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp

Issue 2045253005: Re-implement SVG transform paint property nodes [spv2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer comments Created 4 years, 6 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 "core/paint/PaintPropertyTreePrinter.h" 5 #include "core/paint/PaintPropertyTreePrinter.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/layout/LayoutView.h" 9 #include "core/layout/LayoutView.h"
10 #include "core/paint/ObjectPaintProperties.h" 10 #include "core/paint/ObjectPaintProperties.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 93 }
94 94
95 static void addObjectPaintProperties(const ObjectPaintProperties& paintPrope rties, PropertyTreePrinter<TransformPaintPropertyNode>& printer) 95 static void addObjectPaintProperties(const ObjectPaintProperties& paintPrope rties, PropertyTreePrinter<TransformPaintPropertyNode>& printer)
96 { 96 {
97 if (const TransformPaintPropertyNode* paintOffsetTranslation = paintProp erties.paintOffsetTranslation()) 97 if (const TransformPaintPropertyNode* paintOffsetTranslation = paintProp erties.paintOffsetTranslation())
98 printer.addPropertyNode(paintOffsetTranslation, "PaintOffsetTranslat ion"); 98 printer.addPropertyNode(paintOffsetTranslation, "PaintOffsetTranslat ion");
99 if (const TransformPaintPropertyNode* transform = paintProperties.transf orm()) 99 if (const TransformPaintPropertyNode* transform = paintProperties.transf orm())
100 printer.addPropertyNode(transform, "Transform"); 100 printer.addPropertyNode(transform, "Transform");
101 if (const TransformPaintPropertyNode* perspective = paintProperties.pers pective()) 101 if (const TransformPaintPropertyNode* perspective = paintProperties.pers pective())
102 printer.addPropertyNode(perspective, "Perspective"); 102 printer.addPropertyNode(perspective, "Perspective");
103 if (const TransformPaintPropertyNode* svgLocalTransform = paintPropertie s.svgLocalTransform()) 103 if (const TransformPaintPropertyNode* svgLocalToBorderBoxTransform = pai ntProperties.svgLocalToBorderBoxTransform())
104 printer.addPropertyNode(svgLocalTransform, "SvgLocalTransform"); 104 printer.addPropertyNode(svgLocalToBorderBoxTransform, "SvgLocalToBor derBoxTransform");
105 if (const TransformPaintPropertyNode* scrollTranslation = paintPropertie s.scrollTranslation()) 105 if (const TransformPaintPropertyNode* scrollTranslation = paintPropertie s.scrollTranslation())
106 printer.addPropertyNode(scrollTranslation, "ScrollTranslation"); 106 printer.addPropertyNode(scrollTranslation, "ScrollTranslation");
107 if (const TransformPaintPropertyNode* scrollbarPaintOffset = paintProper ties.scrollbarPaintOffset()) 107 if (const TransformPaintPropertyNode* scrollbarPaintOffset = paintProper ties.scrollbarPaintOffset())
108 printer.addPropertyNode(scrollbarPaintOffset, "ScrollbarPaintOffset" ); 108 printer.addPropertyNode(scrollbarPaintOffset, "ScrollbarPaintOffset" );
109 } 109 }
110 110
111 static void printNodeAsString(const TransformPaintPropertyNode* node, String Builder& stringBuilder) 111 static void printNodeAsString(const TransformPaintPropertyNode* node, String Builder& stringBuilder)
112 { 112 {
113 stringBuilder.append(" transform="); 113 stringBuilder.append(" transform=");
114 114
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 void showEffectPropertyTree(const FrameView& rootFrame) 194 void showEffectPropertyTree(const FrameView& rootFrame)
195 { 195 {
196 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 196 ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
197 PropertyTreePrinter<EffectPaintPropertyNode>(rootFrame).show(); 197 PropertyTreePrinter<EffectPaintPropertyNode>(rootFrame).show();
198 } 198 }
199 199
200 } // namespace blink 200 } // namespace blink
201 201
202 #endif 202 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698