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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase 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
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698