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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/README.md

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
Index: third_party/WebKit/Source/platform/graphics/paint/README.md
diff --git a/third_party/WebKit/Source/platform/graphics/paint/README.md b/third_party/WebKit/Source/platform/graphics/paint/README.md
index 009a7529b5869309a6780cfce57994fead84770b..1bcf259d6677ba22ffef32e4a2ea023b91a939c3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/README.md
+++ b/third_party/WebKit/Source/platform/graphics/paint/README.md
@@ -53,6 +53,12 @@ Each transform node has:
transform origin will rotate the plane about that point)
* a pointer to the parent node, which defines the coordinate space relative to
which the above should be interpreted
+* a boolean indicating whether the transform should be projected into the plane
+ of its parent (i.e., whether the total transform inherited from its parent
+ should be flattened before this node's transform is applied and propagated to
+ children)
+* an integer rendering context ID; content whose transform nodes share a
+ rendering context ID should sort together
The parent node pointers link the transform nodes in a hierarchy (the *transform
tree*), which defines how the transform for any painted content can be
@@ -66,9 +72,11 @@ may be created to establish a perspective matrix for descendant transforms in
order to create the illusion of depth.
***
-*** aside
-TODO(jbroman): Explain flattening, etc., once it exists in the paint properties.
-***
+Note that, even though CSS does not permit it in the DOM, the transform tree can
+have nodes whose children do not flatten their inherited transform and
+participate in no 3D rendering context. For example, not flattening is necessary
+to preserve the 3D character of the perspective transform, but this does not
+imply any 3D sorting.
### Clips

Powered by Google App Engine
This is Rietveld 408576698