Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: Source/core/css/Rect.h

Issue 148523016: Move most of the [Pass]RefPtr's of CSSPrimitiveValue to our transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 bool hasVariableReference() const 50 bool hasVariableReference() const
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 } 143 }
144 } 144 }
145 return result.toString(); 145 return result.toString();
146 } 146 }
147 }; 147 };
148 148
149 } // namespace WebCore 149 } // namespace WebCore
150 150
151 #endif // Rect_h 151 #endif // Rect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698