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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 bool visualOverflowEqual(const BorderData& o) const | 117 bool visualOverflowEqual(const BorderData& o) const |
118 { | 118 { |
119 return m_image.outset() == o.m_image.outset(); | 119 return m_image.outset() == o.m_image.outset(); |
120 } | 120 } |
121 | 121 |
122 bool operator!=(const BorderData& o) const | 122 bool operator!=(const BorderData& o) const |
123 { | 123 { |
124 return !(*this == o); | 124 return !(*this == o); |
125 } | 125 } |
126 | 126 |
127 bool sizeEquals(const BorderData& o) const | 127 bool sizeEquals(const BorderData& o) const |
dgrogan
2016/07/16 01:32:24
Yup, screwed this up.
eae
2016/07/18 16:21:53
Acknowledged.
| |
128 { | 128 { |
129 return borderLeftWidth() != o.borderLeftWidth() | 129 return borderLeftWidth() == o.borderLeftWidth() |
130 || borderTopWidth() != o.borderTopWidth() | 130 && borderTopWidth() == o.borderTopWidth() |
131 || borderRightWidth() != o.borderRightWidth() | 131 && borderRightWidth() == o.borderRightWidth() |
132 || borderBottomWidth() != o.borderBottomWidth(); | 132 && borderBottomWidth() == o.borderBottomWidth(); |
133 } | 133 } |
134 | 134 |
135 const BorderValue& left() const { return m_left; } | 135 const BorderValue& left() const { return m_left; } |
136 const BorderValue& right() const { return m_right; } | 136 const BorderValue& right() const { return m_right; } |
137 const BorderValue& top() const { return m_top; } | 137 const BorderValue& top() const { return m_top; } |
138 const BorderValue& bottom() const { return m_bottom; } | 138 const BorderValue& bottom() const { return m_bottom; } |
139 | 139 |
140 const NinePieceImage& image() const { return m_image; } | 140 const NinePieceImage& image() const { return m_image; } |
141 | 141 |
142 const LengthSize& topLeft() const { return m_topLeft; } | 142 const LengthSize& topLeft() const { return m_topLeft; } |
(...skipping 11 matching lines...) Expand all Loading... | |
154 | 154 |
155 LengthSize m_topLeft; | 155 LengthSize m_topLeft; |
156 LengthSize m_topRight; | 156 LengthSize m_topRight; |
157 LengthSize m_bottomLeft; | 157 LengthSize m_bottomLeft; |
158 LengthSize m_bottomRight; | 158 LengthSize m_bottomRight; |
159 }; | 159 }; |
160 | 160 |
161 } // namespace blink | 161 } // namespace blink |
162 | 162 |
163 #endif // BorderData_h | 163 #endif // BorderData_h |
OLD | NEW |