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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 && m_right.visuallyEqual(o.m_right) | 100 && m_right.visuallyEqual(o.m_right) |
101 && m_top.visuallyEqual(o.m_top) | 101 && m_top.visuallyEqual(o.m_top) |
102 && m_bottom.visuallyEqual(o.m_bottom) | 102 && m_bottom.visuallyEqual(o.m_bottom) |
103 && m_image == o.m_image | 103 && m_image == o.m_image |
104 && m_topLeft == o.m_topLeft | 104 && m_topLeft == o.m_topLeft |
105 && m_topRight == o.m_topRight | 105 && m_topRight == o.m_topRight |
106 && m_bottomLeft == o.m_bottomLeft | 106 && m_bottomLeft == o.m_bottomLeft |
107 && m_bottomRight == o.m_bottomRight; | 107 && m_bottomRight == o.m_bottomRight; |
108 } | 108 } |
109 | 109 |
| 110 bool visualOverflowEqual(const BorderData& o) const |
| 111 { |
| 112 return m_image.outset() == o.m_image.outset(); |
| 113 } |
| 114 |
110 bool operator!=(const BorderData& o) const | 115 bool operator!=(const BorderData& o) const |
111 { | 116 { |
112 return !(*this == o); | 117 return !(*this == o); |
113 } | 118 } |
114 | 119 |
115 const BorderValue& left() const { return m_left; } | 120 const BorderValue& left() const { return m_left; } |
116 const BorderValue& right() const { return m_right; } | 121 const BorderValue& right() const { return m_right; } |
117 const BorderValue& top() const { return m_top; } | 122 const BorderValue& top() const { return m_top; } |
118 const BorderValue& bottom() const { return m_bottom; } | 123 const BorderValue& bottom() const { return m_bottom; } |
119 | 124 |
(...skipping 14 matching lines...) Expand all Loading... |
134 | 139 |
135 LengthSize m_topLeft; | 140 LengthSize m_topLeft; |
136 LengthSize m_topRight; | 141 LengthSize m_topRight; |
137 LengthSize m_bottomLeft; | 142 LengthSize m_bottomLeft; |
138 LengthSize m_bottomRight; | 143 LengthSize m_bottomRight; |
139 }; | 144 }; |
140 | 145 |
141 } // namespace blink | 146 } // namespace blink |
142 | 147 |
143 #endif // BorderData_h | 148 #endif // BorderData_h |
OLD | NEW |