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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPatternElement.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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) 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 20 matching lines...) Expand all
31 inline SVGPatternElement::SVGPatternElement(Document& document) 31 inline SVGPatternElement::SVGPatternElement(Document& document)
32 : SVGElement(SVGNames::patternTag, document) 32 : SVGElement(SVGNames::patternTag, document)
33 , SVGURIReference(this) 33 , SVGURIReference(this)
34 , SVGTests(this) 34 , SVGTests(this)
35 , SVGFitToViewBox(this) 35 , SVGFitToViewBox(this)
36 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG LengthMode::Width))) 36 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG LengthMode::Width)))
37 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG LengthMode::Height))) 37 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG LengthMode::Height)))
38 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(SVGLengthMode::Width))) 38 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(SVGLengthMode::Width)))
39 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(SVGLengthMode::Height))) 39 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(SVGLengthMode::Height)))
40 , m_patternTransform(SVGAnimatedTransformList::create(this, SVGNames::patter nTransformAttr, SVGTransformList::create())) 40 , m_patternTransform(SVGAnimatedTransformList::create(this, SVGNames::patter nTransformAttr, SVGTransformList::create()))
41 , m_patternUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(t his, SVGNames::patternUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)) 41 , m_patternUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(t his, SVGNames::patternUnitsAttr, SVGUnitTypes::kSvgUnitTypeObjectboundingbox))
42 , m_patternContentUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::c reate(this, SVGNames::patternContentUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERS PACEONUSE)) 42 , m_patternContentUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::c reate(this, SVGNames::patternContentUnitsAttr, SVGUnitTypes::kSvgUnitTypeUserspa ceonuse))
43 { 43 {
44 addToPropertyMap(m_x); 44 addToPropertyMap(m_x);
45 addToPropertyMap(m_y); 45 addToPropertyMap(m_y);
46 addToPropertyMap(m_width); 46 addToPropertyMap(m_width);
47 addToPropertyMap(m_height); 47 addToPropertyMap(m_height);
48 addToPropertyMap(m_patternTransform); 48 addToPropertyMap(m_patternTransform);
49 addToPropertyMap(m_patternUnits); 49 addToPropertyMap(m_patternUnits);
50 addToPropertyMap(m_patternContentUnits); 50 addToPropertyMap(m_patternContentUnits);
51 } 51 }
52 52
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 bool SVGPatternElement::selfHasRelativeLengths() const 182 bool SVGPatternElement::selfHasRelativeLengths() const
183 { 183 {
184 return m_x->currentValue()->isRelative() 184 return m_x->currentValue()->isRelative()
185 || m_y->currentValue()->isRelative() 185 || m_y->currentValue()->isRelative()
186 || m_width->currentValue()->isRelative() 186 || m_width->currentValue()->isRelative()
187 || m_height->currentValue()->isRelative(); 187 || m_height->currentValue()->isRelative();
188 } 188 }
189 189
190 } // namespace blink 190 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMaskElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698