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

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: Review fixes, rebase, added more tests, made Style Navigation Data refcounted. Created 6 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: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index 6a27aaead144d0faca8f577e026e5d30c062ea33..c493ce7d97722a1d93285e73ee61ec7e4ba669d1 100644
--- a/Source/core/rendering/style/RenderStyle.h
+++ b/Source/core/rendering/style/RenderStyle.h
@@ -4,6 +4,7 @@
* (C) 2000 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
* Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
+ * Copyright (C) 2014 Opera Software ASA. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -894,6 +895,11 @@ public:
unsigned tabSize() const { return rareInheritedData->m_tabSize; }
+ StyleNavigationValue navDown() const { return rareNonInheritedData->navDown(); }
+ StyleNavigationValue navLeft() const { return rareNonInheritedData->navLeft(); }
+ StyleNavigationValue navRight() const { return rareNonInheritedData->navRight(); }
+ StyleNavigationValue navUp() const { return rareNonInheritedData->navUp(); }
+
// End CSS3 Getters
WrapFlow wrapFlow() const { return static_cast<WrapFlow>(rareNonInheritedData->m_wrapFlow); }
@@ -1362,6 +1368,10 @@ public:
void setTabSize(unsigned size) { SET_VAR(rareInheritedData, m_tabSize, size); }
+ void setNavDown(const StyleNavigationValue& value) { SET_VAR_WITH_SETTER(rareNonInheritedData, navDown, setNavDown, value); }
+ void setNavLeft(const StyleNavigationValue& value) { SET_VAR_WITH_SETTER(rareNonInheritedData, navLeft, setNavLeft, value); }
+ void setNavRight(const StyleNavigationValue& value) { SET_VAR_WITH_SETTER(rareNonInheritedData, navRight, setNavRight, value); }
+ void setNavUp(const StyleNavigationValue& value) { SET_VAR_WITH_SETTER(rareNonInheritedData, navUp, setNavUp, value); }
// End CSS3 Setters
void setWrapFlow(WrapFlow wrapFlow) { SET_VAR(rareNonInheritedData, m_wrapFlow, wrapFlow); }
@@ -1688,7 +1698,7 @@ public:
static ShadowList* initialTextShadow() { return 0; }
static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorInstant; }
- // The initial value is 'none' for grid tracks.
+ // The initial value is 'none' for grid trac ks.
fs 2014/10/01 10:52:14 Stray spaces added.
static Vector<GridTrackSize> initialGridTemplateColumns() { return Vector<GridTrackSize>(); }
static Vector<GridTrackSize> initialGridTemplateRows() { return Vector<GridTrackSize>(); }
@@ -1719,6 +1729,8 @@ public:
static QuotesData* initialQuotes() { return 0; }
+ static StyleNavigationValue initialStyleNavigation() { DEFINE_STATIC_LOCAL(StyleNavigationValue, initialNavigation, ()); return initialNavigation; }
+
// 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