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

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 d240465c8e5c34b9c1efbbed9a847d8b5127c66f..3efea4869d3f70e74b08cfeb423f978325c127ae 100644
--- a/Source/core/style/ComputedStyle.cpp
+++ b/Source/core/style/ComputedStyle.cpp
@@ -893,6 +893,20 @@ bool ComputedStyle::hasWillChangeCompositingHint() const
return false;
}
+bool ComputedStyle::hasWillChangeTransformHint() const
+{
+ for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size(); ++i) {
alancutter (OOO until 2018) 2015/08/29 06:10:04 Can we use for (const auto& property : rareNonInhe
ajuma 2015/08/31 16:43:57 Done.
+ switch (rareNonInheritedData->m_willChange->m_properties[i]) {
+ 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