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

Side by Side Diff: Source/core/svg/SVGRect.cpp

Issue 1321453012: Added allocator matcros to blink classes and structures in core/svg. (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/svg/SVGRect.h ('k') | Source/core/svg/SVGTransformDistance.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, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 19 matching lines...) Expand all
30 #include "wtf/text/StringBuilder.h" 30 #include "wtf/text/StringBuilder.h"
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 SVGRect::SVGRect() 35 SVGRect::SVGRect()
36 : m_isValid(true) 36 : m_isValid(true)
37 { 37 {
38 } 38 }
39 39
40 SVGRect::SVGRect(InvalidSVGRectTag)
41 {
42 setInvalid();
43 }
44
45 SVGRect::SVGRect(const FloatRect& rect) 40 SVGRect::SVGRect(const FloatRect& rect)
46 : m_isValid(true) 41 : m_isValid(true)
47 , m_value(rect) 42 , m_value(rect)
48 { 43 {
49 } 44 }
50 45
51 PassRefPtrWillBeRawPtr<SVGRect> SVGRect::clone() const 46 PassRefPtrWillBeRawPtr<SVGRect> SVGRect::clone() const
52 { 47 {
53 return SVGRect::create(m_value); 48 return SVGRect::create(m_value);
54 } 49 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return -1; 145 return -1;
151 } 146 }
152 147
153 void SVGRect::setInvalid() 148 void SVGRect::setInvalid()
154 { 149 {
155 m_value = FloatRect(0.0f, 0.0f, 0.0f, 0.0f); 150 m_value = FloatRect(0.0f, 0.0f, 0.0f, 0.0f);
156 m_isValid = false; 151 m_isValid = false;
157 } 152 }
158 153
159 } 154 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRect.h ('k') | Source/core/svg/SVGTransformDistance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698