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

Unified Diff: Source/core/rendering/style/StyleNavigationData.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/StyleNavigationData.h
diff --git a/Source/core/rendering/style/StyleNavigationData.h b/Source/core/rendering/style/StyleNavigationData.h
new file mode 100644
index 0000000000000000000000000000000000000000..c560c38963b5be7c6565b313d6e56c075dadad86
--- /dev/null
+++ b/Source/core/rendering/style/StyleNavigationData.h
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2011 Kyounga Ra (kyounga.ra@gmail.com)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef StyleNavigationData_h
+#define StyleNavigationData_h
+
+#include "StyleNavigationValue.h"
+
+namespace WebCore {
+
+class StyleNavigationData {
+friend class RenderStyle;
esprehn 2013/08/08 03:39:40 RenderStyle should not need to be a friend
Krzysztof Olczyk 2013/12/04 13:56:50 Done.
+public:
+ StyleNavigationData() { }
esprehn 2013/08/08 03:39:40 Leave off
Krzysztof Olczyk 2013/12/04 13:56:50 Done.
+
+ StyleNavigationData(const StyleNavigationData& o)
+ : m_up(o.m_up)
+ , m_down(o.m_down)
+ , m_left(o.m_left)
+ , m_right(o.m_right)
esprehn 2013/08/08 03:39:40 indent is wrong.
Krzysztof Olczyk 2013/12/04 13:56:50 Done.
+ { }
+
+ bool operator==(const StyleNavigationData& o) const
+ {
+ return m_up == o.m_up && m_down == o.m_down && m_left == o.m_left && m_right == o.m_right;
+ }
+
+ bool operator!=(const StyleNavigationData& o) const
+ {
+ return !(*this == o);
+ }
+
+ const StyleNavigationValue& up() const { return m_up; }
+ const StyleNavigationValue& down() const { return m_down; }
+ const StyleNavigationValue& left() const { return m_left; }
+ const StyleNavigationValue& right() const { return m_right; }
+
+private:
+ StyleNavigationValue m_up;
+ StyleNavigationValue m_down;
+ StyleNavigationValue m_left;
+ StyleNavigationValue m_right;
+};
+
+} // namespace WebCore
+
+#endif // StyleNavigationData_h

Powered by Google App Engine
This is Rietveld 408576698