OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2005, 2006 Apple Inc. All rights reserved. | 2 Copyright (C) 2005, 2006 Apple Inc. All rights reserved. |
3 | 3 |
4 This library is free software; you can redistribute it and/or | 4 This library is free software; you can redistribute it and/or |
5 modify it under the terms of the GNU Library General Public | 5 modify it under the terms of the GNU Library General Public |
6 License as published by the Free Software Foundation; either | 6 License as published by the Free Software Foundation; either |
7 version 2 of the License, or (at your option) any later version. | 7 version 2 of the License, or (at your option) any later version. |
8 | 8 |
9 This library is distributed in the hope that it will be useful, | 9 This library is distributed in the hope that it will be useful, |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 Library General Public License for more details. | 12 Library General Public License for more details. |
13 | 13 |
14 You should have received a copy of the GNU Library General Public License | 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 | 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, | 16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 Boston, MA 02110-1301, USA. | 17 Boston, MA 02110-1301, USA. |
18 | 18 |
19 | 19 |
20 Some useful definitions needed for laying out elements | 20 Some useful definitions needed for laying out elements |
21 */ | 21 */ |
22 | 22 |
23 #ifndef GapRects_h | 23 #ifndef GapRects_h |
24 #define GapRects_h | 24 #define GapRects_h |
25 | 25 |
26 #include "platform/geometry/LayoutRect.h" | 26 #include "platform/geometry/LayoutRect.h" |
27 #include "wtf/Allocator.h" | 27 #include "platform/wtf/Allocator.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 struct GapRects { | 31 struct GapRects { |
32 STACK_ALLOCATED(); | 32 STACK_ALLOCATED(); |
33 const LayoutRect& left() const { return m_left; } | 33 const LayoutRect& left() const { return m_left; } |
34 const LayoutRect& center() const { return m_center; } | 34 const LayoutRect& center() const { return m_center; } |
35 const LayoutRect& right() const { return m_right; } | 35 const LayoutRect& right() const { return m_right; } |
36 | 36 |
37 void uniteLeft(const LayoutRect& r) { m_left.unite(r); } | 37 void uniteLeft(const LayoutRect& r) { m_left.unite(r); } |
(...skipping 20 matching lines...) Expand all Loading... |
58 | 58 |
59 private: | 59 private: |
60 LayoutRect m_left; | 60 LayoutRect m_left; |
61 LayoutRect m_center; | 61 LayoutRect m_center; |
62 LayoutRect m_right; | 62 LayoutRect m_right; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif // GapRects_h | 67 #endif // GapRects_h |
OLD | NEW |