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

Side by Side Diff: Source/core/style/SVGComputedStyleDefs.h

Issue 1308633005: Make classes and structures in core/style, core/plugins and core/streams fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/style/OutlineValue.h ('k') | Source/core/style/StyleContentAlignmentData.h » ('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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org> 3 2004, 2005 Rob Buis <buis@kde.org>
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 5
6 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org) 7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org)
8 (C) 2000 Antti Koivisto (koivisto@kde.org) 8 (C) 2000 Antti Koivisto (koivisto@kde.org)
9 (C) 2000-2003 Dirk Mueller (mueller@kde.org) 9 (C) 2000-2003 Dirk Mueller (mueller@kde.org)
10 (C) 2002-2003 Apple Computer, Inc. 10 (C) 2002-2003 Apple Computer, Inc.
(...skipping 13 matching lines...) Expand all
24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 Boston, MA 02110-1301, USA. 25 Boston, MA 02110-1301, USA.
26 */ 26 */
27 27
28 #ifndef SVGComputedStyleDefs_h 28 #ifndef SVGComputedStyleDefs_h
29 #define SVGComputedStyleDefs_h 29 #define SVGComputedStyleDefs_h
30 30
31 #include "core/CoreExport.h" 31 #include "core/CoreExport.h"
32 #include "platform/Length.h" 32 #include "platform/Length.h"
33 #include "platform/graphics/Color.h" 33 #include "platform/graphics/Color.h"
34 #include "wtf/Allocator.h"
34 #include "wtf/OwnPtr.h" 35 #include "wtf/OwnPtr.h"
35 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
36 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
37 #include "wtf/RefPtr.h" 38 #include "wtf/RefPtr.h"
38 #include "wtf/RefVector.h" 39 #include "wtf/RefVector.h"
39 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
40 41
41 namespace blink { 42 namespace blink {
42 43
43 typedef RefVector<Length> SVGDashArray; 44 typedef RefVector<Length> SVGDashArray;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 SVGPaintType visitedLinkPaintType; 144 SVGPaintType visitedLinkPaintType;
144 Color visitedLinkPaintColor; 145 Color visitedLinkPaintColor;
145 String visitedLinkPaintUri; 146 String visitedLinkPaintUri;
146 147
147 private: 148 private:
148 StyleFillData(); 149 StyleFillData();
149 StyleFillData(const StyleFillData&); 150 StyleFillData(const StyleFillData&);
150 }; 151 };
151 152
152 class UnzoomedLength { 153 class UnzoomedLength {
154 DISALLOW_ALLOCATION();
153 public: 155 public:
154 explicit UnzoomedLength(const Length& length) : m_length(length) { } 156 explicit UnzoomedLength(const Length& length) : m_length(length) { }
155 157
156 bool isZero() const { return m_length.isZero(); } 158 bool isZero() const { return m_length.isZero(); }
157 159
158 bool operator==(const UnzoomedLength& other) const { return m_length == othe r.m_length; } 160 bool operator==(const UnzoomedLength& other) const { return m_length == othe r.m_length; }
159 bool operator!=(const UnzoomedLength& other) const { return !operator==(othe r); } 161 bool operator!=(const UnzoomedLength& other) const { return !operator==(othe r); }
160 162
161 const Length& length() const { return m_length; } 163 const Length& length() const { return m_length; }
162 164
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Length rx; 305 Length rx;
304 Length ry; 306 Length ry;
305 private: 307 private:
306 StyleLayoutData(); 308 StyleLayoutData();
307 StyleLayoutData(const StyleLayoutData&); 309 StyleLayoutData(const StyleLayoutData&);
308 }; 310 };
309 311
310 } // namespace blink 312 } // namespace blink
311 313
312 #endif // SVGComputedStyleDefs_h 314 #endif // SVGComputedStyleDefs_h
OLDNEW
« no previous file with comments | « Source/core/style/OutlineValue.h ('k') | Source/core/style/StyleContentAlignmentData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698