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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h

Issue 2137173002: [SPv2] Respect transform-style in the Blink and cc property trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dummyRootEffect Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef PaintPropertyTreeBuilder_h 5 #ifndef PaintPropertyTreeBuilder_h
6 #define PaintPropertyTreeBuilder_h 6 #define PaintPropertyTreeBuilder_h
7 7
8 #include "platform/geometry/LayoutPoint.h" 8 #include "platform/geometry/LayoutPoint.h"
9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
(...skipping 11 matching lines...) Expand all
22 struct PaintPropertyTreeBuilderContext { 22 struct PaintPropertyTreeBuilderContext {
23 // State that propagates on the containing block chain (and so is adjusted 23 // State that propagates on the containing block chain (and so is adjusted
24 // when an absolute or fixed position object is encountered). 24 // when an absolute or fixed position object is encountered).
25 struct ContainingBlockContext { 25 struct ContainingBlockContext {
26 // The combination of a transform and paint offset describes a linear sp ace. 26 // The combination of a transform and paint offset describes a linear sp ace.
27 // When a layout object recur to its children, the main context is expec ted to refer 27 // When a layout object recur to its children, the main context is expec ted to refer
28 // the object's border box, then the callee will derive its own border b ox by translating 28 // the object's border box, then the callee will derive its own border b ox by translating
29 // the space with its own layout location. 29 // the space with its own layout location.
30 TransformPaintPropertyNode* transform = nullptr; 30 TransformPaintPropertyNode* transform = nullptr;
31 LayoutPoint paintOffset; 31 LayoutPoint paintOffset;
32 // Whether newly created children should flatten their inherited transfo rm
33 // (equivalently, draw into the plane of their parent). Should generally
34 // be updated whenever |transform| is; flattening only needs to happen
35 // to immediate children.
36 bool shouldFlattenInheritedTransform = false;
37 // Rendering context for 3D sorting. See
38 // TransformPaintPropertyNode::renderingContextID.
39 unsigned renderingContextID = 0;
32 // The clip node describes the accumulated raster clip for the current s ubtree. 40 // The clip node describes the accumulated raster clip for the current s ubtree.
33 // Note that the computed raster region in canvas space for a clip node is independent from 41 // Note that the computed raster region in canvas space for a clip node is independent from
34 // the transform and paint offset above. Also the actual raster region m ay be affected 42 // the transform and paint offset above. Also the actual raster region m ay be affected
35 // by layerization and occlusion tracking. 43 // by layerization and occlusion tracking.
36 ClipPaintPropertyNode* clip = nullptr; 44 ClipPaintPropertyNode* clip = nullptr;
37 }; 45 };
38 46
39 ContainingBlockContext current; 47 ContainingBlockContext current;
40 48
41 // Separate context for out-of-flow positioned and fixed positioned elements are needed 49 // Separate context for out-of-flow positioned and fixed positioned elements are needed
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static void updateOverflowClip(const LayoutObject&, PaintPropertyTreeBuilder Context&); 84 static void updateOverflowClip(const LayoutObject&, PaintPropertyTreeBuilder Context&);
77 static void updatePerspective(const LayoutObject&, PaintPropertyTreeBuilderC ontext&); 85 static void updatePerspective(const LayoutObject&, PaintPropertyTreeBuilderC ontext&);
78 static void updateSvgLocalToBorderBoxTransform(const LayoutObject&, PaintPro pertyTreeBuilderContext&); 86 static void updateSvgLocalToBorderBoxTransform(const LayoutObject&, PaintPro pertyTreeBuilderContext&);
79 static void updateScrollTranslation(const LayoutObject&, PaintPropertyTreeBu ilderContext&); 87 static void updateScrollTranslation(const LayoutObject&, PaintPropertyTreeBu ilderContext&);
80 static void updateOutOfFlowContext(const LayoutObject&, PaintPropertyTreeBui lderContext&); 88 static void updateOutOfFlowContext(const LayoutObject&, PaintPropertyTreeBui lderContext&);
81 }; 89 };
82 90
83 } // namespace blink 91 } // namespace blink
84 92
85 #endif // PaintPropertyTreeBuilder_h 93 #endif // PaintPropertyTreeBuilder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698