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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2011 Kyounga Ra (kyounga.ra@gmail.com)
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 */
20
21 #ifndef StyleNavigationData_h
22 #define StyleNavigationData_h
23
24 #include "StyleNavigationValue.h"
25
26 namespace WebCore {
27
28 class StyleNavigationData {
29 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.
30 public:
31 StyleNavigationData() { }
esprehn 2013/08/08 03:39:40 Leave off
Krzysztof Olczyk 2013/12/04 13:56:50 Done.
32
33 StyleNavigationData(const StyleNavigationData& o)
34 : m_up(o.m_up)
35 , m_down(o.m_down)
36 , m_left(o.m_left)
37 , m_right(o.m_right)
esprehn 2013/08/08 03:39:40 indent is wrong.
Krzysztof Olczyk 2013/12/04 13:56:50 Done.
38 { }
39
40 bool operator==(const StyleNavigationData& o) const
41 {
42 return m_up == o.m_up && m_down == o.m_down && m_left == o.m_left && m_r ight == o.m_right;
43 }
44
45 bool operator!=(const StyleNavigationData& o) const
46 {
47 return !(*this == o);
48 }
49
50 const StyleNavigationValue& up() const { return m_up; }
51 const StyleNavigationValue& down() const { return m_down; }
52 const StyleNavigationValue& left() const { return m_left; }
53 const StyleNavigationValue& right() const { return m_right; }
54
55 private:
56 StyleNavigationValue m_up;
57 StyleNavigationValue m_down;
58 StyleNavigationValue m_left;
59 StyleNavigationValue m_right;
60 };
61
62 } // namespace WebCore
63
64 #endif // StyleNavigationData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698