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

Unified 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: large merge (with https://codereview.chromium.org/2144823006) 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
index 72a21f3d2edd07961902519af35ccf86b73f53c6..9055a1ff841ba8d7d9478c36e45867ec0d67a1a7 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -30,6 +30,14 @@ struct PaintPropertyTreeBuilderContext {
// the space with its own layout location.
TransformPaintPropertyNode* transform = nullptr;
LayoutPoint paintOffset;
+ // Whether newly created children should flatten their inherited transform
+ // (equivalently, draw into the plane of their parent). Should generally
+ // be updated whenever |transform| is; flattening only needs to happen
+ // to immediate children.
+ bool shouldFlattenInheritedTransform = false;
+ // Rendering context for 3D sorting. See
+ // TransformPaintPropertyNode::renderingContextID.
+ unsigned renderingContextID = 0;
// The clip node describes the accumulated raster clip for the current subtree.
// Note that the computed raster region in canvas space for a clip node is independent from
// the transform and paint offset above. Also the actual raster region may be affected
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698