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

Side by Side Diff: Source/core/svg/SVGLength.h

Issue 966923003: Make SVGLengthMode an enum class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/svg/SVGImageElement.cpp ('k') | Source/core/svg/SVGLength.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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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 * 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 24 matching lines...) Expand all
35 AllowNegativeLengths, 35 AllowNegativeLengths,
36 ForbidNegativeLengths 36 ForbidNegativeLengths
37 }; 37 };
38 38
39 class SVGLengthTearOff; 39 class SVGLengthTearOff;
40 40
41 class SVGLength final : public SVGPropertyBase { 41 class SVGLength final : public SVGPropertyBase {
42 public: 42 public:
43 typedef SVGLengthTearOff TearOffType; 43 typedef SVGLengthTearOff TearOffType;
44 44
45 static PassRefPtrWillBeRawPtr<SVGLength> create(SVGLengthMode mode = LengthM odeOther) 45 static PassRefPtrWillBeRawPtr<SVGLength> create(SVGLengthMode mode = SVGLeng thMode::Other)
46 { 46 {
47 return adoptRefWillBeNoop(new SVGLength(mode)); 47 return adoptRefWillBeNoop(new SVGLength(mode));
48 } 48 }
49 49
50 PassRefPtrWillBeRawPtr<SVGLength> clone() const; 50 PassRefPtrWillBeRawPtr<SVGLength> clone() const;
51 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const Stri ng&) const override; 51 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const Stri ng&) const override;
52 52
53 SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitTyp e); } 53 SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitTyp e); }
54 CSSPrimitiveValue::UnitType cssUnitTypeQuirk() const 54 CSSPrimitiveValue::UnitType cssUnitTypeQuirk() const
55 { 55 {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 inline PassRefPtrWillBeRawPtr<SVGLength> toSVGLength(PassRefPtrWillBeRawPtr<SVGP ropertyBase> passBase) 122 inline PassRefPtrWillBeRawPtr<SVGLength> toSVGLength(PassRefPtrWillBeRawPtr<SVGP ropertyBase> passBase)
123 { 123 {
124 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase; 124 RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
125 ASSERT(base->type() == SVGLength::classType()); 125 ASSERT(base->type() == SVGLength::classType());
126 return static_pointer_cast<SVGLength>(base.release()); 126 return static_pointer_cast<SVGLength>(base.release());
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
130 130
131 #endif // SVGLength_h 131 #endif // SVGLength_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGImageElement.cpp ('k') | Source/core/svg/SVGLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698