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(); |