| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; } | 42 void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; } |
| 43 | 43 |
| 44 bool equals(const RectBase& other) const | 44 bool equals(const RectBase& other) const |
| 45 { | 45 { |
| 46 return compareCSSValuePtr(m_top, other.m_top) | 46 return compareCSSValuePtr(m_top, other.m_top) |
| 47 && compareCSSValuePtr(m_right, other.m_right) | 47 && compareCSSValuePtr(m_right, other.m_right) |
| 48 && compareCSSValuePtr(m_left, other.m_left) | 48 && compareCSSValuePtr(m_left, other.m_left) |
| 49 && compareCSSValuePtr(m_bottom, other.m_bottom); | 49 && compareCSSValuePtr(m_bottom, other.m_bottom); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void trace(Visitor*); | |
| 53 | |
| 54 protected: | 52 protected: |
| 55 RectBase() { } | 53 RectBase() { } |
| 56 RectBase(const RectBase& cloneFrom) | 54 RectBase(const RectBase& cloneFrom) |
| 57 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr) | 55 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr) |
| 58 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp
tr) | 56 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp
tr) |
| 59 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu
llptr) | 57 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu
llptr) |
| 60 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr) | 58 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr) |
| 61 { | 59 { |
| 62 } | 60 } |
| 63 | 61 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 126 } |
| 129 | 127 |
| 130 // NOTE: If adding fields to this class please make the RectBase trace | 128 // NOTE: If adding fields to this class please make the RectBase trace |
| 131 // method virtual and add a trace method in this subclass tracing the new | 129 // method virtual and add a trace method in this subclass tracing the new |
| 132 // fields. | 130 // fields. |
| 133 }; | 131 }; |
| 134 | 132 |
| 135 } // namespace blink | 133 } // namespace blink |
| 136 | 134 |
| 137 #endif // Rect_h | 135 #endif // Rect_h |
| OLD | NEW |