Changeset 160389 in webkit
- Timestamp:
- Dec 10, 2013 2:28:06 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r160386 r160389 1 2013-12-10 Rob Buis <rob.buis@samsung.com> 2 3 Clean up SVGScriptElement 4 https://bugs.webkit.org/show_bug.cgi?id=125527 5 6 Reviewed by Sam Weinig. 7 8 Rewrite to not store type in m_type and also remove type getter/setter. 9 10 * svg/SVGScriptElement.cpp: 11 (WebCore::SVGScriptElement::parseAttribute): 12 (WebCore::SVGScriptElement::typeAttributeValue): 13 * svg/SVGScriptElement.h: 14 * svg/SVGScriptElement.idl: 15 1 16 2013-12-10 Laszlo Vidacs <lac@inf.u-szeged.hu> 2 17 -
trunk/Source/WebCore/svg/SVGScriptElement.cpp
r156903 r160389 77 77 } 78 78 79 if (name == SVGNames::typeAttr) { 80 setType(value); 81 return; 82 } 79 if (name == SVGNames::typeAttr) 80 return; 83 81 84 82 if (name == HTMLNames::onerrorAttr) { … … 144 142 } 145 143 146 String SVGScriptElement::type() const147 {148 return m_type;149 }150 151 void SVGScriptElement::setType(const String& type)152 {153 m_type = type;154 }155 156 144 void SVGScriptElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const 157 145 { … … 173 161 String SVGScriptElement::typeAttributeValue() const 174 162 { 175 return type();163 return fastGetAttribute(SVGNames::typeAttr).string(); 176 164 } 177 165 -
trunk/Source/WebCore/svg/SVGScriptElement.h
r157385 r160389 39 39 static PassRefPtr<SVGScriptElement> create(const QualifiedName&, Document&, bool wasInsertedByParser); 40 40 41 String type() const;42 void setType(const String&);43 41 44 42 private: … … 84 82 END_DECLARE_ANIMATED_PROPERTIES 85 83 86 String m_type;87 84 Timer<SVGElement> m_svgLoadEventTimer; 88 85 }; -
trunk/Source/WebCore/svg/SVGScriptElement.idl
r152120 r160389 27 27 Conditional=SVG 28 28 ] interface SVGScriptElement : SVGElement { 29 [TreatNullAs=NullString ] attribute DOMString type;29 [TreatNullAs=NullString, Reflect] attribute DOMString type; 30 30 }; 31 31
Note: See TracChangeset
for help on using the changeset viewer.