Index: Source/core/style/ComputedStyle.h |
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h |
index e8f1dd447b7c3da63b8cea7aa1f136bd3b89779c..6acd2da1885c1765bb224ccc455f11645fb60732 100644 |
--- a/Source/core/style/ComputedStyle.h |
+++ b/Source/core/style/ComputedStyle.h |
@@ -879,9 +879,9 @@ public: |
ObjectFit objectFit() const { return static_cast<ObjectFit>(rareNonInheritedData->m_objectFit); } |
LengthPoint objectPosition() const { return rareNonInheritedData->m_objectPosition; } |
- // Return true if any transform related property (currently transform/motionPath, transformStyle3D or perspective) |
- // indicates that we are transforming |
- bool hasTransformRelatedProperty() const { return hasTransform() || preserves3D() || hasPerspective(); } |
+ // Return true if any transform related property (currently transform/motionPath, transformStyle3D, perspective, |
+ // or will-change:transform) indicates that we are transforming |
+ bool hasTransformRelatedProperty() const { return hasTransform() || preserves3D() || hasPerspective() || hasWillChangeTransformHint(); } |
enum ApplyTransformOrigin { IncludeTransformOrigin, ExcludeTransformOrigin }; |
enum ApplyMotionPath { IncludeMotionPath, ExcludeMotionPath }; |
@@ -971,6 +971,7 @@ public: |
bool willChangeContents() const { return rareNonInheritedData->m_willChange->m_contents; } |
bool willChangeScrollPosition() const { return rareNonInheritedData->m_willChange->m_scrollPosition; } |
bool hasWillChangeCompositingHint() const; |
+ bool hasWillChangeTransformHint() const; |
bool subtreeWillChangeContents() const { return rareInheritedData->m_subtreeWillChangeContents; } |
// attribute setter methods |