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/rendering/style/RenderStyle.h

Issue 17450016: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI Created 7 years, 6 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: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index ff5e92fdee594ee0d3c2b5b6712cf96228455f7f..f497f564aff72bc489be3483b9a14e63e44b09e9 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -840,6 +840,11 @@ public:
unsigned tabSize() const { return rareInheritedData->m_tabSize; }
+ StyleNavigationValue navDown() const { return rareNonInheritedData->m_nav.m_down; }
+ StyleNavigationValue navLeft() const { return rareNonInheritedData->m_nav.m_left; }
+ StyleNavigationValue navRight() const { return rareNonInheritedData->m_nav.m_right; }
+ StyleNavigationValue navUp() const { return rareNonInheritedData->m_nav.m_up; }
+
// End CSS3 Getters
const AtomicString& flowThread() const { return rareNonInheritedData->m_flowThread; }
@@ -1265,6 +1270,11 @@ public:
void setTabSize(unsigned size) { SET_VAR(rareInheritedData, m_tabSize, size); }
+ void setNavDown(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_nav.m_down, v); }
+ void setNavLeft(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_nav.m_left, v); }
+ void setNavRight(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_nav.m_right, v); }
+ void setNavUp(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_nav.m_up, v); }
+
// End CSS3 Setters
void setLineGrid(const AtomicString& lineGrid) { SET_VAR(rareInheritedData, m_lineGrid, lineGrid); }
@@ -1625,6 +1635,8 @@ public:
static WrapFlow initialWrapFlow() { return WrapFlowAuto; }
static WrapThrough initialWrapThrough() { return WrapThroughWrap; }
+ static StyleNavigationValue initialStyleNavigation() { DEFINE_STATIC_LOCAL(StyleNavigationValue, navi, ()); return navi; }
esprehn 2013/06/20 19:45:10 don't abbreviate, what is navi?
Krzysztof Olczyk 2013/07/22 14:14:16 Done.
+
// Keep these at the end.
static LineClampValue initialLineClamp() { return LineClampValue(); }
static ETextSecurity initialTextSecurity() { return TSNONE; }

Powered by Google App Engine
This is Rietveld 408576698