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

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

Issue 2369143003: CSS Motion Path: offset-position,offset-path establish stacking context (Closed)
Patch Set: concise Created 4 years, 3 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: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index d70c43f78d2d162af1cc868f6750a8fcc26fb140..73eadb82abf268173cbe9afe94cb4a9eacf112a8 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2149,7 +2149,7 @@ public:
bool hasBlendMode() const { return blendMode() != WebBlendModeNormal; }
// Motion utility functions.
- bool hasOffsetPath() const { return offsetPath(); }
+ bool hasOffset() const { return (offsetPosition().x() != Length(Auto)) || offsetPath(); }
// Direction utility functions.
bool isLeftToRightDirection() const { return direction() == LTR; }
@@ -2257,7 +2257,7 @@ public:
// Filter/transform utility functions.
bool has3DTransform() const { return m_rareNonInheritedData->m_transform->has3DTransform(); }
- bool hasTransform() const { return hasTransformOperations() || hasOffsetPath() || hasCurrentTransformAnimation() || translate() || rotate() || scale(); }
+ bool hasTransform() const { return hasTransformOperations() || hasOffset() || hasCurrentTransformAnimation() || translate() || rotate() || scale(); }
bool hasTransformOperations() const { return !m_rareNonInheritedData->m_transform->m_operations.operations().isEmpty(); }
ETransformStyle3D usedTransformStyle3D() const { return hasGroupingProperty() ? TransformStyle3DFlat : transformStyle3D(); }
bool transformDataEquivalent(const ComputedStyle& otherStyle) const { return m_rareNonInheritedData->m_transform == otherStyle.m_rareNonInheritedData->m_transform; }
« no previous file with comments | « third_party/WebKit/Source/core/animation/KeyframeEffect.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698