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

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

Issue 1737453002: WIP: snap-width Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 e8cfa48f05318a61df84761b8b96387380eef664..8d317d12e02bb88169d823f70e6ce7b2fc633922 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -949,6 +949,7 @@ public:
uint8_t snapHeightPosition() const { return rareInheritedData->m_snapHeightPosition; }
uint8_t snapHeightUnit() const { return rareInheritedData->m_snapHeightUnit; }
+ LayoutUnit snapWidth() const { return LayoutUnit::fromRawValue(rareNonInheritedData->m_snapWidth); }
TabSize getTabSize() const { return rareInheritedData->m_tabSize; }
@@ -1452,6 +1453,7 @@ public:
void setSnapHeightPosition(uint8_t position) { SET_VAR(rareInheritedData, m_snapHeightPosition, position); }
void setSnapHeightUnit(uint8_t unit) { SET_VAR(rareInheritedData, m_snapHeightUnit, unit); }
+ void setSnapWidth(LayoutUnit unit) { SET_VAR(rareNonInheritedData, m_snapWidth, unit.rawValue()); }
void setTabSize(TabSize size) { SET_VAR(rareInheritedData, m_tabSize, size); }
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.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