| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 return 0; | 87 return 0; |
| 88 return m_bottom.width(); | 88 return m_bottom.width(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 bool operator==(const BorderData& o) const | 91 bool operator==(const BorderData& o) const |
| 92 { | 92 { |
| 93 return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top &&
m_bottom == o.m_bottom && m_image == o.m_image | 93 return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top &&
m_bottom == o.m_bottom && m_image == o.m_image |
| 94 && m_topLeft == o.m_topLeft && m_topRight == o.m_topRight && m_bo
ttomLeft == o.m_bottomLeft && m_bottomRight == o.m_bottomRight; | 94 && m_topLeft == o.m_topLeft && m_topRight == o.m_topRight && m_bo
ttomLeft == o.m_bottomLeft && m_bottomRight == o.m_bottomRight; |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool visuallyEqual(const BorderData& o) const |
| 98 { |
| 99 return m_left.visuallyEqual(o.m_left) |
| 100 && m_right.visuallyEqual(o.m_right) |
| 101 && m_top.visuallyEqual(o.m_top) |
| 102 && m_bottom.visuallyEqual(o.m_bottom) |
| 103 && m_image == o.m_image |
| 104 && m_topLeft == o.m_topLeft |
| 105 && m_topRight == o.m_topRight |
| 106 && m_bottomLeft == o.m_bottomLeft |
| 107 && m_bottomRight == o.m_bottomRight; |
| 108 } |
| 109 |
| 97 bool operator!=(const BorderData& o) const | 110 bool operator!=(const BorderData& o) const |
| 98 { | 111 { |
| 99 return !(*this == o); | 112 return !(*this == o); |
| 100 } | 113 } |
| 101 | 114 |
| 102 const BorderValue& left() const { return m_left; } | 115 const BorderValue& left() const { return m_left; } |
| 103 const BorderValue& right() const { return m_right; } | 116 const BorderValue& right() const { return m_right; } |
| 104 const BorderValue& top() const { return m_top; } | 117 const BorderValue& top() const { return m_top; } |
| 105 const BorderValue& bottom() const { return m_bottom; } | 118 const BorderValue& bottom() const { return m_bottom; } |
| 106 | 119 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 121 | 134 |
| 122 LengthSize m_topLeft; | 135 LengthSize m_topLeft; |
| 123 LengthSize m_topRight; | 136 LengthSize m_topRight; |
| 124 LengthSize m_bottomLeft; | 137 LengthSize m_bottomLeft; |
| 125 LengthSize m_bottomRight; | 138 LengthSize m_bottomRight; |
| 126 }; | 139 }; |
| 127 | 140 |
| 128 } // namespace WebCore | 141 } // namespace WebCore |
| 129 | 142 |
| 130 #endif // BorderData_h | 143 #endif // BorderData_h |
| OLD | NEW |