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

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

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
« no previous file with comments | « Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyle.cpp
diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp
index 5ee956de7ea7e9ea4c5070d1514b1466d00e9f4f..342cd0056ccd950281007948e88379902baa3259 100644
--- a/Source/core/style/ComputedStyle.cpp
+++ b/Source/core/style/ComputedStyle.cpp
@@ -897,6 +897,20 @@ bool ComputedStyle::hasWillChangeCompositingHint() const
return false;
}
+bool ComputedStyle::hasWillChangeTransformHint() const
+{
+ for (const auto& property: rareNonInheritedData->m_willChange->m_properties) {
+ switch (property) {
+ case CSSPropertyTransform:
+ case CSSPropertyAliasWebkitTransform:
+ return true;
+ default:
+ break;
+ }
+ }
+ return false;
+}
+
bool ComputedStyle::requireTransformOrigin(ApplyTransformOrigin applyOrigin, ApplyMotionPath applyMotionPath) const
{
const Vector<RefPtr<TransformOperation>>& transformOperations = transform().operations();
« no previous file with comments | « Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698