| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 && compareCSSValuePtr(m_bottom, other.m_bottom); | 48 && compareCSSValuePtr(m_bottom, other.m_bottom); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void trace(Visitor*); | 51 void trace(Visitor*); |
| 52 | 52 |
| 53 ~RectBase() { } | 53 ~RectBase() { } |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 RectBase() { } | 56 RectBase() { } |
| 57 RectBase(const RectBase& cloneFrom) | 57 RectBase(const RectBase& cloneFrom) |
| 58 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : 0) | 58 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr) |
| 59 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : 0) | 59 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp
tr) |
| 60 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : 0) | 60 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu
llptr) |
| 61 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : 0) | 61 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr) |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 RefPtrWillBeMember<CSSPrimitiveValue> m_top; | 66 RefPtrWillBeMember<CSSPrimitiveValue> m_top; |
| 67 RefPtrWillBeMember<CSSPrimitiveValue> m_right; | 67 RefPtrWillBeMember<CSSPrimitiveValue> m_right; |
| 68 RefPtrWillBeMember<CSSPrimitiveValue> m_bottom; | 68 RefPtrWillBeMember<CSSPrimitiveValue> m_bottom; |
| 69 RefPtrWillBeMember<CSSPrimitiveValue> m_left; | 69 RefPtrWillBeMember<CSSPrimitiveValue> m_left; |
| 70 }; | 70 }; |
| 71 | 71 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 | 130 |
| 131 // NOTE: If adding fields to this class please make the RectBase trace | 131 // NOTE: If adding fields to this class please make the RectBase trace |
| 132 // method virtual and add a trace method in this subclass tracing the new | 132 // method virtual and add a trace method in this subclass tracing the new |
| 133 // fields. | 133 // fields. |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace WebCore | 136 } // namespace WebCore |
| 137 | 137 |
| 138 #endif // Rect_h | 138 #endif // Rect_h |
| OLD | NEW |