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

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: Applied code review suggestions. Also rebased. Created 6 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: Source/core/rendering/style/RenderStyle.h
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h
index 8474a7ff7cecd4685e598a5e9463095ee981c207..2ca7ee7891ec4ea910a5abd70a7af7ebb21980a2 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
@@ -892,6 +893,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); }
@@ -1349,6 +1355,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); }
@@ -1698,6 +1708,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