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

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

Issue 953693002: InlinedVisitor: Migrate css to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 30 matching lines...) Expand all
41 void setLeft(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> left) { m_left = left ; } 41 void setLeft(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> left) { m_left = left ; }
42 42
43 bool equals(const RectBase& other) const 43 bool equals(const RectBase& other) const
44 { 44 {
45 return compareCSSValuePtr(m_top, other.m_top) 45 return compareCSSValuePtr(m_top, other.m_top)
46 && compareCSSValuePtr(m_right, other.m_right) 46 && compareCSSValuePtr(m_right, other.m_right)
47 && compareCSSValuePtr(m_left, other.m_left) 47 && compareCSSValuePtr(m_left, other.m_left)
48 && compareCSSValuePtr(m_bottom, other.m_bottom); 48 && compareCSSValuePtr(m_bottom, other.m_bottom);
49 } 49 }
50 50
51 void trace(Visitor*); 51 DECLARE_TRACE();
52 52
53 protected: 53 protected:
54 RectBase() { } 54 RectBase() { }
55 55
56 private: 56 private:
57 RefPtrWillBeMember<CSSPrimitiveValue> m_top; 57 RefPtrWillBeMember<CSSPrimitiveValue> m_top;
58 RefPtrWillBeMember<CSSPrimitiveValue> m_right; 58 RefPtrWillBeMember<CSSPrimitiveValue> m_right;
59 RefPtrWillBeMember<CSSPrimitiveValue> m_bottom; 59 RefPtrWillBeMember<CSSPrimitiveValue> m_bottom;
60 RefPtrWillBeMember<CSSPrimitiveValue> m_left; 60 RefPtrWillBeMember<CSSPrimitiveValue> m_left;
61 }; 61 };
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 // NOTE: If adding fields to this class please make the RectBase trace 116 // NOTE: If adding fields to this class please make the RectBase trace
117 // method virtual and add a trace method in this subclass tracing the new 117 // method virtual and add a trace method in this subclass tracing the new
118 // fields. 118 // fields.
119 }; 119 };
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif // Rect_h 123 #endif // Rect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698