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

Side by Side Diff: sky/engine/core/css/Rect.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/RGBColor.h ('k') | sky/engine/core/css/Rect.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; } 42 void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; }
43 43
44 bool equals(const RectBase& other) const 44 bool equals(const RectBase& other) const
45 { 45 {
46 return compareCSSValuePtr(m_top, other.m_top) 46 return compareCSSValuePtr(m_top, other.m_top)
47 && compareCSSValuePtr(m_right, other.m_right) 47 && compareCSSValuePtr(m_right, other.m_right)
48 && compareCSSValuePtr(m_left, other.m_left) 48 && compareCSSValuePtr(m_left, other.m_left)
49 && compareCSSValuePtr(m_bottom, other.m_bottom); 49 && compareCSSValuePtr(m_bottom, other.m_bottom);
50 } 50 }
51 51
52 void trace(Visitor*);
53
54 protected: 52 protected:
55 RectBase() { } 53 RectBase() { }
56 RectBase(const RectBase& cloneFrom) 54 RectBase(const RectBase& cloneFrom)
57 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr) 55 : m_top(cloneFrom.m_top ? cloneFrom.m_top->cloneForCSSOM() : nullptr)
58 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp tr) 56 , m_right(cloneFrom.m_right ? cloneFrom.m_right->cloneForCSSOM() : nullp tr)
59 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu llptr) 57 , m_bottom(cloneFrom.m_bottom ? cloneFrom.m_bottom->cloneForCSSOM() : nu llptr)
60 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr) 58 , m_left(cloneFrom.m_left ? cloneFrom.m_left->cloneForCSSOM() : nullptr)
61 { 59 {
62 } 60 }
63 61
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 126 }
129 127
130 // NOTE: If adding fields to this class please make the RectBase trace 128 // 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 129 // method virtual and add a trace method in this subclass tracing the new
132 // fields. 130 // fields.
133 }; 131 };
134 132
135 } // namespace blink 133 } // namespace blink
136 134
137 #endif // Rect_h 135 #endif // Rect_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/RGBColor.h ('k') | sky/engine/core/css/Rect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698