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 && m_right.visuallyEqual(o.m_right) | 107 && m_right.visuallyEqual(o.m_right) |
108 && m_top.visuallyEqual(o.m_top) | 108 && m_top.visuallyEqual(o.m_top) |
109 && m_bottom.visuallyEqual(o.m_bottom) | 109 && m_bottom.visuallyEqual(o.m_bottom) |
110 && m_image == o.m_image | 110 && m_image == o.m_image |
111 && m_topLeft == o.m_topLeft | 111 && m_topLeft == o.m_topLeft |
112 && m_topRight == o.m_topRight | 112 && m_topRight == o.m_topRight |
113 && m_bottomLeft == o.m_bottomLeft | 113 && m_bottomLeft == o.m_bottomLeft |
114 && m_bottomRight == o.m_bottomRight; | 114 && m_bottomRight == o.m_bottomRight; |
115 } | 115 } |
116 | 116 |
| 117 bool visualOverflowEqual(const BorderData& o) const |
| 118 { |
| 119 return m_image.outset() == o.m_image.outset(); |
| 120 } |
| 121 |
117 bool operator!=(const BorderData& o) const | 122 bool operator!=(const BorderData& o) const |
118 { | 123 { |
119 return !(*this == o); | 124 return !(*this == o); |
120 } | 125 } |
121 | 126 |
122 const BorderValue& left() const { return m_left; } | 127 const BorderValue& left() const { return m_left; } |
123 const BorderValue& right() const { return m_right; } | 128 const BorderValue& right() const { return m_right; } |
124 const BorderValue& top() const { return m_top; } | 129 const BorderValue& top() const { return m_top; } |
125 const BorderValue& bottom() const { return m_bottom; } | 130 const BorderValue& bottom() const { return m_bottom; } |
126 | 131 |
(...skipping 14 matching lines...) Expand all Loading... |
141 | 146 |
142 LengthSize m_topLeft; | 147 LengthSize m_topLeft; |
143 LengthSize m_topRight; | 148 LengthSize m_topRight; |
144 LengthSize m_bottomLeft; | 149 LengthSize m_bottomLeft; |
145 LengthSize m_bottomRight; | 150 LengthSize m_bottomRight; |
146 }; | 151 }; |
147 | 152 |
148 } // namespace blink | 153 } // namespace blink |
149 | 154 |
150 #endif // BorderData_h | 155 #endif // BorderData_h |
OLD | NEW |