| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef BorderValue_h | 25 #ifndef BorderValue_h |
| 26 #define BorderValue_h | 26 #define BorderValue_h |
| 27 | 27 |
| 28 #include "core/css/StyleColor.h" | 28 #include "core/css/StyleColor.h" |
| 29 #include "core/style/ComputedStyleConstants.h" | 29 #include "core/style/ComputedStyleConstants.h" |
| 30 #include "platform/graphics/Color.h" | 30 #include "platform/graphics/Color.h" |
| 31 #include "wtf/Allocator.h" | 31 #include "platform/wtf/Allocator.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 // In order to conserve memory, the border width uses fixed point, | 35 // In order to conserve memory, the border width uses fixed point, |
| 36 // which can be bitpacked. This fixed point implementation is | 36 // which can be bitpacked. This fixed point implementation is |
| 37 // essentially the same as in LayoutUnit. Six bits are used for the | 37 // essentially the same as in LayoutUnit. Six bits are used for the |
| 38 // fraction, which leaves 20 bits for the integer part, making 1048575 | 38 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 39 // the largest number. | 39 // the largest number. |
| 40 | 40 |
| 41 static const int kBorderWidthFractionalBits = 6; | 41 static const int kBorderWidthFractionalBits = 6; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 unsigned width_ : 26; // Fixed point width | 115 unsigned width_ : 26; // Fixed point width |
| 116 unsigned style_ : 4; // EBorderStyle | 116 unsigned style_ : 4; // EBorderStyle |
| 117 | 117 |
| 118 // This is only used by OutlineValue but moved here to keep the bits packed. | 118 // This is only used by OutlineValue but moved here to keep the bits packed. |
| 119 unsigned is_auto_ : 1; // OutlineIsAuto | 119 unsigned is_auto_ : 1; // OutlineIsAuto |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| 123 | 123 |
| 124 #endif // BorderValue_h | 124 #endif // BorderValue_h |
| OLD | NEW |