| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return true; | 56 return true; |
| 57 if (!m_topRight.width().isZero()) | 57 if (!m_topRight.width().isZero()) |
| 58 return true; | 58 return true; |
| 59 if (!m_bottomLeft.width().isZero()) | 59 if (!m_bottomLeft.width().isZero()) |
| 60 return true; | 60 return true; |
| 61 if (!m_bottomRight.width().isZero()) | 61 if (!m_bottomRight.width().isZero()) |
| 62 return true; | 62 return true; |
| 63 return false; | 63 return false; |
| 64 } | 64 } |
| 65 | 65 |
| 66 int borderLeftWidth() const { | 66 float borderLeftWidth() const { |
| 67 if (m_left.style() == BorderStyleNone || | 67 if (m_left.style() == BorderStyleNone || |
| 68 m_left.style() == BorderStyleHidden) | 68 m_left.style() == BorderStyleHidden) |
| 69 return 0; | 69 return 0; |
| 70 return m_left.width(); | 70 return m_left.width(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 int borderRightWidth() const { | 73 float borderRightWidth() const { |
| 74 if (m_right.style() == BorderStyleNone || | 74 if (m_right.style() == BorderStyleNone || |
| 75 m_right.style() == BorderStyleHidden) | 75 m_right.style() == BorderStyleHidden) |
| 76 return 0; | 76 return 0; |
| 77 return m_right.width(); | 77 return m_right.width(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 int borderTopWidth() const { | 80 float borderTopWidth() const { |
| 81 if (m_top.style() == BorderStyleNone || m_top.style() == BorderStyleHidden) | 81 if (m_top.style() == BorderStyleNone || m_top.style() == BorderStyleHidden) |
| 82 return 0; | 82 return 0; |
| 83 return m_top.width(); | 83 return m_top.width(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 int borderBottomWidth() const { | 86 float borderBottomWidth() const { |
| 87 if (m_bottom.style() == BorderStyleNone || | 87 if (m_bottom.style() == BorderStyleNone || |
| 88 m_bottom.style() == BorderStyleHidden) | 88 m_bottom.style() == BorderStyleHidden) |
| 89 return 0; | 89 return 0; |
| 90 return m_bottom.width(); | 90 return m_bottom.width(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool operator==(const BorderData& o) const { | 93 bool operator==(const BorderData& o) const { |
| 94 return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top && | 94 return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top && |
| 95 m_bottom == o.m_bottom && m_image == o.m_image && radiiEqual(o); | 95 m_bottom == o.m_bottom && m_image == o.m_image && radiiEqual(o); |
| 96 } | 96 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 LengthSize m_topLeft; | 142 LengthSize m_topLeft; |
| 143 LengthSize m_topRight; | 143 LengthSize m_topRight; |
| 144 LengthSize m_bottomLeft; | 144 LengthSize m_bottomLeft; |
| 145 LengthSize m_bottomRight; | 145 LengthSize m_bottomRight; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace blink | 148 } // namespace blink |
| 149 | 149 |
| 150 #endif // BorderData_h | 150 #endif // BorderData_h |
| OLD | NEW |