| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 static unsigned widthToFixedPoint(float width) { | 107 static unsigned widthToFixedPoint(float width) { |
| 108 DCHECK_GE(width, 0); | 108 DCHECK_GE(width, 0); |
| 109 return static_cast<unsigned>(std::min<float>(width, kMaxForBorderWidth) * | 109 return static_cast<unsigned>(std::min<float>(width, kMaxForBorderWidth) * |
| 110 kBorderWidthDenominator); | 110 kBorderWidthDenominator); |
| 111 } | 111 } |
| 112 | 112 |
| 113 Color m_color; | 113 Color m_color; |
| 114 unsigned m_colorIsCurrentColor : 1; | 114 unsigned m_colorIsCurrentColor : 1; |
| 115 | 115 |
| 116 unsigned m_width : 26; // Fixed point width | 116 unsigned m_width : 26; // Fixed point width |
| 117 unsigned m_style : 4; // EBorderStyle | 117 unsigned m_style : 4; // EBorderStyle |
| 118 | 118 |
| 119 // This is only used by OutlineValue but moved here to keep the bits packed. | 119 // This is only used by OutlineValue but moved here to keep the bits packed. |
| 120 unsigned m_isAuto : 1; // OutlineIsAuto | 120 unsigned m_isAuto : 1; // OutlineIsAuto |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // BorderValue_h | 125 #endif // BorderValue_h |
| OLD | NEW |