| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 namespace WebCore { | 28 namespace WebCore { |
| 29 | 29 |
| 30 class RectBase { | 30 class RectBase { |
| 31 public: | 31 public: |
| 32 CSSPrimitiveValue* top() const { return m_top.get(); } | 32 CSSPrimitiveValue* top() const { return m_top.get(); } |
| 33 CSSPrimitiveValue* right() const { return m_right.get(); } | 33 CSSPrimitiveValue* right() const { return m_right.get(); } |
| 34 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } | 34 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } |
| 35 CSSPrimitiveValue* left() const { return m_left.get(); } | 35 CSSPrimitiveValue* left() const { return m_left.get(); } |
| 36 | 36 |
| 37 void setTop(PassRefPtr<CSSPrimitiveValue> top) { m_top = top; } | 37 void setTop(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> top) { m_top = top; } |
| 38 void setRight(PassRefPtr<CSSPrimitiveValue> right) { m_right = right; } | 38 void setRight(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> right) { m_right = r
ight; } |
| 39 void setBottom(PassRefPtr<CSSPrimitiveValue> bottom) { m_bottom = bottom; } | 39 void setBottom(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> bottom) { m_bottom
= bottom; } |
| 40 void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; } | 40 void setLeft(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> left) { m_left = left
; } |
| 41 | 41 |
| 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 protected: | 50 protected: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 return result.toString(); | 121 return result.toString(); |
| 122 } | 122 } |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace WebCore | 125 } // namespace WebCore |
| 126 | 126 |
| 127 #endif // Rect_h | 127 #endif // Rect_h |
| OLD | NEW |