OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
4 Copyright (c) 2012, Google Inc. All rights reserved. | 4 Copyright (c) 2012, Google Inc. All rights reserved. |
5 | 5 |
6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
10 | 10 |
11 This library is distributed in the hope that it will be useful, | 11 This library is distributed in the hope that it will be useful, |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 Library General Public License for more details. | 14 Library General Public License for more details. |
15 | 15 |
16 You should have received a copy of the GNU Library General Public License | 16 You should have received a copy of the GNU Library General Public License |
17 along with this library; see the file COPYING.LIB. If not, write to | 17 along with this library; see the file COPYING.LIB. If not, write to |
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 Boston, MA 02110-1301, USA. | 19 Boston, MA 02110-1301, USA. |
20 */ | 20 */ |
21 | 21 |
22 #ifndef LengthBox_h | 22 #ifndef LengthBox_h |
23 #define LengthBox_h | 23 #define LengthBox_h |
24 | 24 |
25 #include "platform/Length.h" | 25 #include "platform/Length.h" |
26 #include "platform/PlatformExport.h" | 26 #include "platform/PlatformExport.h" |
27 #include "platform/text/TextDirection.h" | 27 #include "platform/text/TextDirection.h" |
28 #include "platform/text/WritingMode.h" | 28 #include "platform/text/WritingMode.h" |
29 #include "wtf/Allocator.h" | 29 #include "platform/wtf/Allocator.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class PLATFORM_EXPORT LengthBox { | 33 class PLATFORM_EXPORT LengthBox { |
34 DISALLOW_NEW(); | 34 DISALLOW_NEW(); |
35 | 35 |
36 public: | 36 public: |
37 LengthBox() {} | 37 LengthBox() {} |
38 | 38 |
39 LengthBox(LengthType t) : left_(t), right_(t), top_(t), bottom_(t) {} | 39 LengthBox(LengthType t) : left_(t), right_(t), top_(t), bottom_(t) {} |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Must be public for SET_VAR in ComputedStyle.h | 99 // Must be public for SET_VAR in ComputedStyle.h |
100 Length left_; | 100 Length left_; |
101 Length right_; | 101 Length right_; |
102 Length top_; | 102 Length top_; |
103 Length bottom_; | 103 Length bottom_; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
108 #endif // LengthBox_h | 108 #endif // LengthBox_h |
OLD | NEW |