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

Side by Side Diff: Source/core/svg/PatternAttributes.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/LinearGradientAttributes.h ('k') | Source/core/svg/RadialGradientAttributes.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 15 matching lines...) Expand all
26 #include "platform/transforms/AffineTransform.h" 26 #include "platform/transforms/AffineTransform.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class SVGPatternElement; 30 class SVGPatternElement;
31 31
32 class PatternAttributes final { 32 class PatternAttributes final {
33 DISALLOW_ALLOCATION(); 33 DISALLOW_ALLOCATION();
34 public: 34 public:
35 PatternAttributes() 35 PatternAttributes()
36 : m_x(SVGLength::create(LengthModeWidth)) 36 : m_x(SVGLength::create(SVGLengthMode::Width))
37 , m_y(SVGLength::create(LengthModeHeight)) 37 , m_y(SVGLength::create(SVGLengthMode::Height))
38 , m_width(SVGLength::create(LengthModeWidth)) 38 , m_width(SVGLength::create(SVGLengthMode::Width))
39 , m_height(SVGLength::create(LengthModeHeight)) 39 , m_height(SVGLength::create(SVGLengthMode::Height))
40 , m_viewBox() 40 , m_viewBox()
41 , m_preserveAspectRatio(SVGPreserveAspectRatio::create()) 41 , m_preserveAspectRatio(SVGPreserveAspectRatio::create())
42 , m_patternUnits(SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) 42 , m_patternUnits(SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)
43 , m_patternContentUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) 43 , m_patternContentUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)
44 , m_patternContentElement(nullptr) 44 , m_patternContentElement(nullptr)
45 , m_xSet(false) 45 , m_xSet(false)
46 , m_ySet(false) 46 , m_ySet(false)
47 , m_widthSet(false) 47 , m_widthSet(false)
48 , m_heightSet(false) 48 , m_heightSet(false)
49 , m_viewBoxSet(false) 49 , m_viewBoxSet(false)
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 { 191 {
192 } 192 }
193 193
194 PatternAttributes m_attributes; 194 PatternAttributes m_attributes;
195 }; 195 };
196 #endif 196 #endif
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // PatternAttributes_h 200 #endif // PatternAttributes_h
OLDNEW
« no previous file with comments | « Source/core/svg/LinearGradientAttributes.h ('k') | Source/core/svg/RadialGradientAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698