Chromium Code Reviews| 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 | |
| 122 | |
|
Xianzhu
2016/03/22 17:02:05
Nit: Extra blank line.
| |
| 117 bool operator!=(const BorderData& o) const | 123 bool operator!=(const BorderData& o) const |
| 118 { | 124 { |
| 119 return !(*this == o); | 125 return !(*this == o); |
| 120 } | 126 } |
| 121 | 127 |
| 122 const BorderValue& left() const { return m_left; } | 128 const BorderValue& left() const { return m_left; } |
| 123 const BorderValue& right() const { return m_right; } | 129 const BorderValue& right() const { return m_right; } |
| 124 const BorderValue& top() const { return m_top; } | 130 const BorderValue& top() const { return m_top; } |
| 125 const BorderValue& bottom() const { return m_bottom; } | 131 const BorderValue& bottom() const { return m_bottom; } |
| 126 | 132 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 141 | 147 |
| 142 LengthSize m_topLeft; | 148 LengthSize m_topLeft; |
| 143 LengthSize m_topRight; | 149 LengthSize m_topRight; |
| 144 LengthSize m_bottomLeft; | 150 LengthSize m_bottomLeft; |
| 145 LengthSize m_bottomRight; | 151 LengthSize m_bottomRight; |
| 146 }; | 152 }; |
| 147 | 153 |
| 148 } // namespace blink | 154 } // namespace blink |
| 149 | 155 |
| 150 #endif // BorderData_h | 156 #endif // BorderData_h |
| OLD | NEW |