Changeset 160389 in webkit


Ignore:
Timestamp:
Dec 10, 2013 2:28:06 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Clean up SVGScriptElement
https://bugs.webkit.org/show_bug.cgi?id=125527

Patch by Rob Buis <rob.buis@samsung.com> on 2013-12-10
Reviewed by Sam Weinig.

Rewrite to not store type in m_type and also remove type getter/setter.

  • svg/SVGScriptElement.cpp:

(WebCore::SVGScriptElement::parseAttribute):
(WebCore::SVGScriptElement::typeAttributeValue):

  • svg/SVGScriptElement.h:
  • svg/SVGScriptElement.idl:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160386 r160389  
     12013-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
    1162013-12-10  Laszlo Vidacs  <lac@inf.u-szeged.hu>
    217
  • trunk/Source/WebCore/svg/SVGScriptElement.cpp

    r156903 r160389  
    7777    }
    7878
    79     if (name == SVGNames::typeAttr) {
    80         setType(value);
    81         return;
    82     }
     79    if (name == SVGNames::typeAttr)
     80        return;
    8381
    8482    if (name == HTMLNames::onerrorAttr) {
     
    144142}
    145143
    146 String SVGScriptElement::type() const
    147 {
    148     return m_type;
    149 }
    150 
    151 void SVGScriptElement::setType(const String& type)
    152 {
    153     m_type = type;
    154 }
    155 
    156144void SVGScriptElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const
    157145{
     
    173161String SVGScriptElement::typeAttributeValue() const
    174162{
    175     return type();
     163    return fastGetAttribute(SVGNames::typeAttr).string();
    176164}
    177165
  • trunk/Source/WebCore/svg/SVGScriptElement.h

    r157385 r160389  
    3939    static PassRefPtr<SVGScriptElement> create(const QualifiedName&, Document&, bool wasInsertedByParser);
    4040
    41     String type() const;
    42     void setType(const String&);
    4341
    4442private:
     
    8482    END_DECLARE_ANIMATED_PROPERTIES
    8583
    86     String m_type;
    8784    Timer<SVGElement> m_svgLoadEventTimer;
    8885};
  • trunk/Source/WebCore/svg/SVGScriptElement.idl

    r152120 r160389  
    2727    Conditional=SVG
    2828] interface SVGScriptElement : SVGElement {
    29     [TreatNullAs=NullString] attribute DOMString type;
     29    [TreatNullAs=NullString, Reflect] attribute DOMString type;
    3030};
    3131
Note: See TracChangeset for help on using the changeset viewer.