| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 bool isTransparent() const { | 49 bool isTransparent() const { |
| 50 return !m_colorIsCurrentColor && !m_color.alpha(); | 50 return !m_colorIsCurrentColor && !m_color.alpha(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool operator==(const BorderValue& o) const { | 53 bool operator==(const BorderValue& o) const { |
| 54 return m_width == o.m_width && m_style == o.m_style && | 54 return m_width == o.m_width && m_style == o.m_style && |
| 55 m_color == o.m_color && | 55 m_color == o.m_color && |
| 56 m_colorIsCurrentColor == o.m_colorIsCurrentColor; | 56 m_colorIsCurrentColor == o.m_colorIsCurrentColor; |
| 57 } | 57 } |
| 58 | 58 |
| 59 // The default width is 3px, but if the style is none we compute a value of 0
(in ComputedStyle itself) | 59 // The default width is 3px, but if the style is none we compute a value of 0 |
| 60 // (in ComputedStyle itself) |
| 60 bool visuallyEqual(const BorderValue& o) const { | 61 bool visuallyEqual(const BorderValue& o) const { |
| 61 if (m_style == BorderStyleNone && o.m_style == BorderStyleNone) | 62 if (m_style == BorderStyleNone && o.m_style == BorderStyleNone) |
| 62 return true; | 63 return true; |
| 63 if (m_style == BorderStyleHidden && o.m_style == BorderStyleHidden) | 64 if (m_style == BorderStyleHidden && o.m_style == BorderStyleHidden) |
| 64 return true; | 65 return true; |
| 65 return *this == o; | 66 return *this == o; |
| 66 } | 67 } |
| 67 | 68 |
| 68 bool operator!=(const BorderValue& o) const { return !(*this == o); } | 69 bool operator!=(const BorderValue& o) const { return !(*this == o); } |
| 69 | 70 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 89 unsigned m_width : 26; | 90 unsigned m_width : 26; |
| 90 unsigned m_style : 4; // EBorderStyle | 91 unsigned m_style : 4; // EBorderStyle |
| 91 | 92 |
| 92 // This is only used by OutlineValue but moved here to keep the bits packed. | 93 // This is only used by OutlineValue but moved here to keep the bits packed. |
| 93 unsigned m_isAuto : 1; // OutlineIsAuto | 94 unsigned m_isAuto : 1; // OutlineIsAuto |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace blink | 97 } // namespace blink |
| 97 | 98 |
| 98 #endif // BorderValue_h | 99 #endif // BorderValue_h |
| OLD | NEW |