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

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: Added tests Created 7 years, 5 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 b4c6a66f91eeb74bd5b39731ceb5d4c8ee0c2ad8..28a897c0e09c662ef8b70118d4b8ffccaff9a8e3 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -833,6 +833,11 @@ public:
unsigned tabSize() const { return rareInheritedData->m_tabSize; }
+ StyleNavigationValue navDown() const { return rareNonInheritedData->m_navigation.m_down; }
+ StyleNavigationValue navLeft() const { return rareNonInheritedData->m_navigation.m_left; }
+ StyleNavigationValue navRight() const { return rareNonInheritedData->m_navigation.m_right; }
+ StyleNavigationValue navUp() const { return rareNonInheritedData->m_navigation.m_up; }
+
// End CSS3 Getters
const AtomicString& flowThread() const { return rareNonInheritedData->m_flowThread; }
@@ -1257,6 +1262,11 @@ public:
void setTabSize(unsigned size) { SET_VAR(rareInheritedData, m_tabSize, size); }
+ void setNavDown(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_navigation.m_down, v); }
+ void setNavLeft(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_navigation.m_left, v); }
+ void setNavRight(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_navigation.m_right, v); }
+ void setNavUp(StyleNavigationValue v) { SET_VAR(rareNonInheritedData, m_navigation.m_up, v); }
+
// End CSS3 Setters
void setLineGrid(const AtomicString& lineGrid) { SET_VAR(rareInheritedData, m_lineGrid, lineGrid); }
@@ -1614,6 +1624,8 @@ public:
static QuotesData* initialQuotes() { return 0; }
+ static StyleNavigationValue initialStyleNavigation() { DEFINE_STATIC_LOCAL(StyleNavigationValue, initial_navigation, ()); return initial_navigation; }
+
// Keep these at the end.
// FIXME: Why? Seems these should all be one big sorted list.
static LineClampValue initialLineClamp() { return LineClampValue(); }

Powered by Google App Engine
This is Rietveld 408576698