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

Unified Diff: Source/core/style/ComputedStyle.h

Issue 1318273003: Prevent will-change:transform from changing the computed value of transform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: 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

Powered by Google App Engine
This is Rietveld 408576698