Make will-change: transform-style create a containing block master
authorntim@apple.com <ntim@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 May 2021 08:30:49 +0000 (08:30 +0000)
committerntim@apple.com <ntim@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 16 May 2021 08:30:49 +0000 (08:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=225441

Reviewed by Simon Fraser.

Marked relevant WPT as pass.

Source/WebCore:

* rendering/style/WillChangeData.cpp:
(WebCore::WillChangeData::createsContainingBlockForOutOfFlowPositioned const):

LayoutTests:

* TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@277566 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/rendering/style/WillChangeData.cpp

index 0298862..6c736e7 100644 (file)
@@ -1,3 +1,14 @@
+2021-05-16  Tim Nguyen  <ntim@apple.com>
+
+        Make will-change: transform-style create a containing block
+        https://bugs.webkit.org/show_bug.cgi?id=225441
+
+        Reviewed by Simon Fraser.
+
+        Marked relevant WPT as pass.
+
+        * TestExpectations:
+
 2021-05-15  Said Abou-Hallawa  <said@apple.com>
 
         Implement CanvasRenderingContext2D.createConicGradient
index 38aba80..5a96788 100644 (file)
@@ -4863,7 +4863,6 @@ webkit.org/b/225035 imported/w3c/web-platform-tests/css/css-will-change/will-cha
 webkit.org/b/225034 imported/w3c/web-platform-tests/css/css-will-change/will-change-fixedpos-cb-003.html [ ImageOnlyFailure ]
 webkit.org/b/225442 imported/w3c/web-platform-tests/css/css-will-change/will-change-fixpos-cb-contain-1.html [ ImageOnlyFailure ]
 webkit.org/b/225443 imported/w3c/web-platform-tests/css/css-will-change/will-change-fixpos-cb-position-1.html [ ImageOnlyFailure ]
-webkit.org/b/225441 imported/w3c/web-platform-tests/css/css-will-change/will-change-fixpos-cb-transform-style-1.html [ ImageOnlyFailure ]
 webkit.org/b/224902 [ Debug ] imported/w3c/web-platform-tests/css/css-will-change/parsing/will-change-invalid.html [ Skip ]
 
 # Implement offset-* properties
index 881b9b3..de4d50d 100644 (file)
@@ -1,3 +1,15 @@
+2021-05-16  Tim Nguyen  <ntim@apple.com>
+
+        Make will-change: transform-style create a containing block
+        https://bugs.webkit.org/show_bug.cgi?id=225441
+
+        Reviewed by Simon Fraser.
+
+        Marked relevant WPT as pass.
+
+        * rendering/style/WillChangeData.cpp:
+        (WebCore::WillChangeData::createsContainingBlockForOutOfFlowPositioned const):
+
 2021-05-15  Ryosuke Niwa  <rniwa@webkit.org>
 
         Delete WebSQL code from WebKit2
index d8712fb..ec6c061 100644 (file)
@@ -66,6 +66,7 @@ bool WillChangeData::createsContainingBlockForOutOfFlowPositioned() const
         || containsProperty(CSSPropertyPerspective)
         // CSS transforms
         || containsProperty(CSSPropertyTransform)
+        || containsProperty(CSSPropertyTransformStyle)
         || containsProperty(CSSPropertyTranslate)
         || containsProperty(CSSPropertyRotate)
         || containsProperty(CSSPropertyScale)