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

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

Issue 2352273002: CSS Motion Path: offset-anchor and offset-position (Closed)
Patch Set: rebase 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 39b416e4009abaa07bdff87df190a6c9576c6925..052ff04c1fd577813393b10186db8bbf0e56422c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -980,6 +980,11 @@ public:
LengthPoint objectPosition() const { return m_rareNonInheritedData->m_objectPosition; }
void setObjectPosition(LengthPoint position) { SET_VAR(m_rareNonInheritedData, m_objectPosition, position); }
+ // offset-anchor
+ static LengthPoint initialOffsetAnchor() { return LengthPoint(Length(50.0, Percent), Length(50.0, Percent)); }
+ const LengthPoint& offsetAnchor() const { return m_rareNonInheritedData->m_transform->m_motion.m_anchor; }
+ void setOffsetAnchor(const LengthPoint& offsetAnchor) { SET_NESTED_VAR(m_rareNonInheritedData, m_transform, m_motion.m_anchor, offsetAnchor); }
+
// offset-distance
static Length initialOffsetDistance() { return Length(0, Fixed); }
const Length& offsetDistance() const { return m_rareNonInheritedData->m_transform->m_motion.m_distance; }
@@ -990,6 +995,11 @@ public:
StylePath* offsetPath() const { return m_rareNonInheritedData->m_transform->m_motion.m_path.get(); }
void setOffsetPath(PassRefPtr<StylePath>);
+ // offset-position
+ static LengthPoint initialOffsetPosition() { return LengthPoint(Length(Auto), Length(Auto)); }
+ const LengthPoint& offsetPosition() const { return m_rareNonInheritedData->m_transform->m_motion.m_position; }
+ void setOffsetPosition(const LengthPoint& offsetPosition) { SET_NESTED_VAR(m_rareNonInheritedData, m_transform, m_motion.m_position, offsetPosition); }
+
// offset-rotation
static StyleOffsetRotation initialOffsetRotation() { return StyleOffsetRotation(0, OffsetRotationAuto); }
const StyleOffsetRotation& offsetRotation() const { return m_rareNonInheritedData->m_transform->m_motion.m_rotation; }
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | third_party/WebKit/Source/core/style/StyleMotionData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698