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

Side by Side Diff: Source/core/svg/LinearGradientAttributes.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/layout/svg/SVGPathData.cpp ('k') | Source/core/svg/PatternAttributes.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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 11 matching lines...) Expand all
22 22
23 #include "core/svg/GradientAttributes.h" 23 #include "core/svg/GradientAttributes.h"
24 #include "platform/heap/Handle.h" 24 #include "platform/heap/Handle.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 struct LinearGradientAttributes : GradientAttributes { 28 struct LinearGradientAttributes : GradientAttributes {
29 DISALLOW_ALLOCATION(); 29 DISALLOW_ALLOCATION();
30 public: 30 public:
31 LinearGradientAttributes() 31 LinearGradientAttributes()
32 : m_x1(SVGLength::create(LengthModeWidth)) 32 : m_x1(SVGLength::create(SVGLengthMode::Width))
33 , m_y1(SVGLength::create(LengthModeWidth)) 33 , m_y1(SVGLength::create(SVGLengthMode::Height))
34 , m_x2(SVGLength::create(LengthModeWidth)) 34 , m_x2(SVGLength::create(SVGLengthMode::Width))
35 , m_y2(SVGLength::create(LengthModeWidth)) 35 , m_y2(SVGLength::create(SVGLengthMode::Height))
36 , m_x1Set(false) 36 , m_x1Set(false)
37 , m_y1Set(false) 37 , m_y1Set(false)
38 , m_x2Set(false) 38 , m_x2Set(false)
39 , m_y2Set(false) 39 , m_y2Set(false)
40 { 40 {
41 m_x2->setValueAsString("100%", ASSERT_NO_EXCEPTION); 41 m_x2->setValueAsString("100%", ASSERT_NO_EXCEPTION);
42 } 42 }
43 43
44 SVGLength* x1() const { return m_x1.get(); } 44 SVGLength* x1() const { return m_x1.get(); }
45 SVGLength* y1() const { return m_y1.get(); } 45 SVGLength* y1() const { return m_y1.get(); }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 LinearGradientAttributes m_attributes; 99 LinearGradientAttributes m_attributes;
100 }; 100 };
101 #endif 101 #endif
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif 105 #endif
106 106
107 // vim:ts=4:noet 107 // vim:ts=4:noet
OLDNEW
« no previous file with comments | « Source/core/layout/svg/SVGPathData.cpp ('k') | Source/core/svg/PatternAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698