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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

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: Rebased once again to master, fixed layout test. 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.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index 31a85c2cf2e1c86b8ef515f2d1cd965dff0a254e..82ead2690918cbe5b4f37cc3c4bb8648fcdd071c 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -2,6 +2,7 @@
* Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
* Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
+ * Copyright (C) 2013 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
@@ -792,6 +793,22 @@ void RenderStyle::setContent(QuoteType quote, bool add)
rareNonInheritedData.access()->m_content = ContentData::create(quote);
}
+void RenderStyle::setNavigation(const StyleNavigationData& data)
+{
+ rareNonInheritedData.access()->m_navigation = adoptPtr(new StyleNavigationData(data));
+}
+
+void RenderStyle::setNavigation(StyleNavigationData::NavigationDirection direction, const StyleNavigationValue& value, bool add)
+{
+ if (add && rareNonInheritedData->m_navigation) {
+ rareNonInheritedData.access()->m_navigation->SetProperty(direction, value);
+ return;
+ }
+
+ StyleNavigationData data(direction, value);
+ setNavigation(data);
+}
+
blink::WebBlendMode RenderStyle::blendMode() const
{
if (RuntimeEnabledFeatures::cssCompositingEnabled())

Powered by Google App Engine
This is Rietveld 408576698