Changeset 179829 in webkit
- Timestamp:
- Feb 9, 2015, 9:15:28 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
svg/SVGAElement.cpp (modified) (2 diffs)
-
svg/SVGElement.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r179827 r179829 1 2015-02-09 Darin Adler <darin@apple.com> 2 3 Try to fix build on platforms that use SVG "all in one" file (Windows). 4 5 * svg/SVGAElement.cpp: Don't do "using namespace HTMLNames;" outside of 6 function boundaries, because that will be inherited by other files. 7 (WebCore::SVGAElement::isURLAttribute): Use XLinkNames directly here 8 instead of using HTMLNames implicitly. 9 10 * svg/SVGElement.cpp: Don't do "using namespace HTMLNames;" outside of 11 function boundaries, because that will be inherited by other files. 12 (WebCore::populateAttributeNameToCSSPropertyIDMap): Instead do it in here. 13 (WebCore::populateAttributeNameToAnimatedPropertyTypeMap): And here. 14 (WebCore::populateCSSPropertyWithSVGDOMNameToAnimatedPropertyTypeMap): And here. 15 (WebCore::SVGElement::parseAttribute): And use HTMLNames directly here 16 instead of implicitly. 17 1 18 2015-02-09 Eric Carlson <eric.carlson@apple.com> 2 19 -
trunk/Source/WebCore/svg/SVGAElement.cpp
r179810 r179829 48 48 namespace WebCore { 49 49 50 using namespace HTMLNames;51 52 50 // Animated property definitions 53 51 DEFINE_ANIMATED_STRING(SVGAElement, SVGNames::targetAttr, SVGTarget, svgTarget) … … 210 208 bool SVGAElement::isURLAttribute(const Attribute& attribute) const 211 209 { 212 return attribute.name().localName() == hrefAttr || SVGGraphicsElement::isURLAttribute(attribute);210 return attribute.name().localName() == XLinkNames::hrefAttr || SVGGraphicsElement::isURLAttribute(attribute); 213 211 } 214 212 -
trunk/Source/WebCore/svg/SVGElement.cpp
r179810 r179829 73 73 END_REGISTER_ANIMATED_PROPERTIES 74 74 75 using namespace HTMLNames;76 using namespace SVGNames;77 78 75 static NEVER_INLINE void populateAttributeNameToCSSPropertyIDMap(HashMap<AtomicStringImpl*, CSSPropertyID>& map) 79 76 { 77 using namespace HTMLNames; 78 using namespace SVGNames; 79 80 80 // This list should include all base CSS and SVG CSS properties which are exposed as SVG XML attributes. 81 81 static const QualifiedName* const attributeNames[] = { … … 165 165 static NEVER_INLINE void populateAttributeNameToAnimatedPropertyTypeMap(HashMap<QualifiedName::QualifiedNameImpl*, AnimatedPropertyType>& map) 166 166 { 167 using namespace HTMLNames; 168 using namespace SVGNames; 169 167 170 struct TableEntry { 168 171 const QualifiedName& attributeName; … … 243 246 static NEVER_INLINE void populateCSSPropertyWithSVGDOMNameToAnimatedPropertyTypeMap(HashMap<QualifiedName::QualifiedNameImpl*, AnimatedPropertyType>& map) 244 247 { 248 using namespace HTMLNames; 249 using namespace SVGNames; 250 245 251 struct TableEntry { 246 252 const QualifiedName& attributeName; … … 509 515 if (name == HTMLNames::classAttr) 510 516 setClassNameBaseValue(value); 511 else if (name == tabindexAttr) {517 else if (name == HTMLNames::tabindexAttr) { 512 518 int tabindex = 0; 513 519 if (value.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.