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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAngle.h

Issue 1412713004: Hoist some pre-condition checks out of SVGAngle/SVGEnumeration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | third_party/WebKit/Source/core/svg/SVGAngle.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) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 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 * 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 SVGAngleType unitType() const { return m_unitType; } 86 SVGAngleType unitType() const { return m_unitType; }
87 87
88 void setValue(float); 88 void setValue(float);
89 float value() const; 89 float value() const;
90 90
91 void setValueInSpecifiedUnits(float valueInSpecifiedUnits) { m_valueInSpecif iedUnits = valueInSpecifiedUnits; } 91 void setValueInSpecifiedUnits(float valueInSpecifiedUnits) { m_valueInSpecif iedUnits = valueInSpecifiedUnits; }
92 float valueInSpecifiedUnits() const { return m_valueInSpecifiedUnits; } 92 float valueInSpecifiedUnits() const { return m_valueInSpecifiedUnits; }
93 93
94 void newValueSpecifiedUnits(SVGAngleType unitType, float valueInSpecifiedUni ts); 94 void newValueSpecifiedUnits(SVGAngleType unitType, float valueInSpecifiedUni ts);
95 void convertToSpecifiedUnits(SVGAngleType unitType, ExceptionState&); 95 void convertToSpecifiedUnits(SVGAngleType unitType);
96 96
97 SVGEnumeration<SVGMarkerOrientType>* orientType() { return m_orientType.get( ); } 97 SVGEnumeration<SVGMarkerOrientType>* orientType() { return m_orientType.get( ); }
98 const SVGEnumeration<SVGMarkerOrientType>* orientType() const { return m_ori entType.get(); } 98 const SVGEnumeration<SVGMarkerOrientType>* orientType() const { return m_ori entType.get(); }
99 void orientTypeChanged(); 99 void orientTypeChanged();
100 100
101 // SVGPropertyBase: 101 // SVGPropertyBase:
102 102
103 PassRefPtrWillBeRawPtr<SVGAngle> clone() const; 103 PassRefPtrWillBeRawPtr<SVGAngle> clone() const;
104 104
105 String valueAsString() const override; 105 String valueAsString() const override;
(...skipping 21 matching lines...) Expand all
127 inline PassRefPtrWillBeRawPtr<SVGAngle> toSVGAngle(PassRefPtrWillBeRawPtr<SVGPro pertyBase> passBase) 127 inline PassRefPtrWillBeRawPtr<SVGAngle> toSVGAngle(PassRefPtrWillBeRawPtr<SVGPro pertyBase> passBase)
128 { 128 {
129 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; 129 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
130 ASSERT(base->type() == SVGAngle::classType()); 130 ASSERT(base->type() == SVGAngle::classType());
131 return static_pointer_cast<SVGAngle>(base.release()); 131 return static_pointer_cast<SVGAngle>(base.release());
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // SVGAngle_h 136 #endif // SVGAngle_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAngle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698