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 bool equals(const RectBase& other) const | 42 bool equals(const RectBase& other) const |
43 { | 43 { |
44 return compareCSSValuePtr(m_top, other.m_top) | 44 return compareCSSValuePtr(m_top, other.m_top) |
45 && compareCSSValuePtr(m_right, other.m_right) | 45 && compareCSSValuePtr(m_right, other.m_right) |
46 && compareCSSValuePtr(m_left, other.m_left) | 46 && compareCSSValuePtr(m_left, other.m_left) |
47 && compareCSSValuePtr(m_bottom, other.m_bottom); | 47 && compareCSSValuePtr(m_bottom, other.m_bottom); |
48 } | 48 } |
49 | 49 |
50 void trace(Visitor*); | 50 void trace(Visitor*); |
51 | 51 |
| 52 #if !ENABLE(OILPAN) |
52 ~RectBase() { } | 53 ~RectBase() { } |
| 54 #endif |
53 | 55 |
54 protected: | 56 protected: |
55 RectBase() { } | 57 RectBase() { } |
56 RectBase(const RectBase& cloneFrom) | 58 RectBase(const RectBase& cloneFrom) |
57 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr) | 59 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr) |
58 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp
tr) | 60 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp
tr) |
59 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu
llptr) | 61 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu
llptr) |
60 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr) | 62 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr) |
61 { | 63 { |
62 } | 64 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 130 } |
129 | 131 |
130 // NOTE: If adding fields to this class please make the RectBase trace | 132 // 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 | 133 // method virtual and add a trace method in this subclass tracing the new |
132 // fields. | 134 // fields. |
133 }; | 135 }; |
134 | 136 |
135 } // namespace WebCore | 137 } // namespace WebCore |
136 | 138 |
137 #endif // Rect_h | 139 #endif // Rect_h |
OLD | NEW |