Changeset 109149 in webkit


Ignore:
Timestamp:
Feb 28, 2012 2:21:02 PM (12 years ago)
Author:
kling@webkit.org
Message:

StyledElement::isPresentationAttribute() only needs the attribute name.
<http://webkit.org/b/79828>

Reviewed by Anders Carlsson.

Pass the QualifiedName to isPresentationAttribute instead of the whole
Attribute. We only need the name to know what kind of attribute it is.

This makes the code a little less ugly and makes it possible to use
the function without having an Attribute object.

  • dom/StyledElement.cpp:

(WebCore::StyledElement::attributeChanged):

  • dom/StyledElement.h:

(WebCore::StyledElement::isPresentationAttribute):

  • html/HTMLBRElement.cpp:

(WebCore::HTMLBRElement::isPresentationAttribute):

  • html/HTMLBRElement.h:
  • html/HTMLBodyElement.cpp:

(WebCore::HTMLBodyElement::isPresentationAttribute):

  • html/HTMLBodyElement.h:
  • html/HTMLButtonElement.cpp:

(WebCore::HTMLButtonElement::isPresentationAttribute):

  • html/HTMLButtonElement.h:
  • html/HTMLDivElement.cpp:

(WebCore::HTMLDivElement::isPresentationAttribute):

  • html/HTMLDivElement.h:
  • html/HTMLElement.cpp:

(WebCore::HTMLElement::isPresentationAttribute):

  • html/HTMLElement.h:
  • html/HTMLEmbedElement.cpp:

(WebCore::HTMLEmbedElement::isPresentationAttribute):

  • html/HTMLEmbedElement.h:
  • html/HTMLFontElement.cpp:

(WebCore::HTMLFontElement::isPresentationAttribute):

  • html/HTMLFontElement.h:
  • html/HTMLFrameSetElement.cpp:

(WebCore::HTMLFrameSetElement::isPresentationAttribute):

  • html/HTMLFrameSetElement.h:
  • html/HTMLHRElement.cpp:

(WebCore::HTMLHRElement::isPresentationAttribute):

  • html/HTMLHRElement.h:
  • html/HTMLIFrameElement.cpp:

(WebCore::HTMLIFrameElement::isPresentationAttribute):

  • html/HTMLIFrameElement.h:
  • html/HTMLImageElement.cpp:

(WebCore::HTMLImageElement::isPresentationAttribute):

  • html/HTMLImageElement.h:
  • html/HTMLInputElement.cpp:

(WebCore::HTMLInputElement::isPresentationAttribute):

  • html/HTMLInputElement.h:
  • html/HTMLLIElement.cpp:

(WebCore::HTMLLIElement::isPresentationAttribute):

  • html/HTMLLIElement.h:
  • html/HTMLMarqueeElement.cpp:

(WebCore::HTMLMarqueeElement::isPresentationAttribute):

  • html/HTMLMarqueeElement.h:
  • html/HTMLOListElement.cpp:

(WebCore::HTMLOListElement::isPresentationAttribute):

  • html/HTMLOListElement.h:
  • html/HTMLObjectElement.cpp:

(WebCore::HTMLObjectElement::isPresentationAttribute):

  • html/HTMLObjectElement.h:
  • html/HTMLParagraphElement.cpp:

(WebCore::HTMLParagraphElement::isPresentationAttribute):

  • html/HTMLParagraphElement.h:
  • html/HTMLPlugInElement.cpp:

(WebCore::HTMLPlugInElement::isPresentationAttribute):

  • html/HTMLPlugInElement.h:
  • html/HTMLPreElement.cpp:

(WebCore::HTMLPreElement::isPresentationAttribute):

  • html/HTMLPreElement.h:
  • html/HTMLSelectElement.cpp:

(WebCore::HTMLSelectElement::isPresentationAttribute):

  • html/HTMLSelectElement.h:
  • html/HTMLTableCaptionElement.cpp:

(WebCore::HTMLTableCaptionElement::isPresentationAttribute):

  • html/HTMLTableCaptionElement.h:
  • html/HTMLTableCellElement.cpp:

(WebCore::HTMLTableCellElement::isPresentationAttribute):

  • html/HTMLTableCellElement.h:
  • html/HTMLTableColElement.cpp:

(WebCore::HTMLTableColElement::isPresentationAttribute):

  • html/HTMLTableColElement.h:
  • html/HTMLTableElement.cpp:

(WebCore::HTMLTableElement::isPresentationAttribute):

  • html/HTMLTableElement.h:
  • html/HTMLTablePartElement.cpp:

(WebCore::HTMLTablePartElement::isPresentationAttribute):

  • html/HTMLTablePartElement.h:
  • html/HTMLTextAreaElement.cpp:

(WebCore::HTMLTextAreaElement::isPresentationAttribute):

  • html/HTMLTextAreaElement.h:
  • html/HTMLUListElement.cpp:

(WebCore::HTMLUListElement::isPresentationAttribute):

  • html/HTMLUListElement.h:
  • html/HTMLVideoElement.cpp:

(WebCore::HTMLVideoElement::isPresentationAttribute):

  • html/HTMLVideoElement.h:
  • mathml/MathMLElement.cpp:

(WebCore::MathMLElement::isPresentationAttribute):

  • mathml/MathMLElement.h:
  • svg/SVGImageElement.cpp:

(WebCore::SVGImageElement::isPresentationAttribute):

  • svg/SVGImageElement.h:
  • svg/SVGStyledElement.cpp:

(WebCore::SVGStyledElement::isPresentationAttribute):

  • svg/SVGStyledElement.h:
  • svg/SVGTextContentElement.cpp:

(WebCore::SVGTextContentElement::isPresentationAttribute):

  • svg/SVGTextContentElement.h:
Location:
trunk/Source/WebCore
Files:
67 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109147 r109149  
     12012-02-28  Andreas Kling  <awesomekling@apple.com>
     2
     3        StyledElement::isPresentationAttribute() only needs the attribute name.
     4        <http://webkit.org/b/79828>
     5
     6        Reviewed by Anders Carlsson.
     7
     8        Pass the QualifiedName to isPresentationAttribute instead of the whole
     9        Attribute. We only need the name to know what kind of attribute it is.
     10
     11        This makes the code a little less ugly and makes it possible to use
     12        the function without having an Attribute object.
     13
     14        * dom/StyledElement.cpp:
     15        (WebCore::StyledElement::attributeChanged):
     16        * dom/StyledElement.h:
     17        (WebCore::StyledElement::isPresentationAttribute):
     18        * html/HTMLBRElement.cpp:
     19        (WebCore::HTMLBRElement::isPresentationAttribute):
     20        * html/HTMLBRElement.h:
     21        * html/HTMLBodyElement.cpp:
     22        (WebCore::HTMLBodyElement::isPresentationAttribute):
     23        * html/HTMLBodyElement.h:
     24        * html/HTMLButtonElement.cpp:
     25        (WebCore::HTMLButtonElement::isPresentationAttribute):
     26        * html/HTMLButtonElement.h:
     27        * html/HTMLDivElement.cpp:
     28        (WebCore::HTMLDivElement::isPresentationAttribute):
     29        * html/HTMLDivElement.h:
     30        * html/HTMLElement.cpp:
     31        (WebCore::HTMLElement::isPresentationAttribute):
     32        * html/HTMLElement.h:
     33        * html/HTMLEmbedElement.cpp:
     34        (WebCore::HTMLEmbedElement::isPresentationAttribute):
     35        * html/HTMLEmbedElement.h:
     36        * html/HTMLFontElement.cpp:
     37        (WebCore::HTMLFontElement::isPresentationAttribute):
     38        * html/HTMLFontElement.h:
     39        * html/HTMLFrameSetElement.cpp:
     40        (WebCore::HTMLFrameSetElement::isPresentationAttribute):
     41        * html/HTMLFrameSetElement.h:
     42        * html/HTMLHRElement.cpp:
     43        (WebCore::HTMLHRElement::isPresentationAttribute):
     44        * html/HTMLHRElement.h:
     45        * html/HTMLIFrameElement.cpp:
     46        (WebCore::HTMLIFrameElement::isPresentationAttribute):
     47        * html/HTMLIFrameElement.h:
     48        * html/HTMLImageElement.cpp:
     49        (WebCore::HTMLImageElement::isPresentationAttribute):
     50        * html/HTMLImageElement.h:
     51        * html/HTMLInputElement.cpp:
     52        (WebCore::HTMLInputElement::isPresentationAttribute):
     53        * html/HTMLInputElement.h:
     54        * html/HTMLLIElement.cpp:
     55        (WebCore::HTMLLIElement::isPresentationAttribute):
     56        * html/HTMLLIElement.h:
     57        * html/HTMLMarqueeElement.cpp:
     58        (WebCore::HTMLMarqueeElement::isPresentationAttribute):
     59        * html/HTMLMarqueeElement.h:
     60        * html/HTMLOListElement.cpp:
     61        (WebCore::HTMLOListElement::isPresentationAttribute):
     62        * html/HTMLOListElement.h:
     63        * html/HTMLObjectElement.cpp:
     64        (WebCore::HTMLObjectElement::isPresentationAttribute):
     65        * html/HTMLObjectElement.h:
     66        * html/HTMLParagraphElement.cpp:
     67        (WebCore::HTMLParagraphElement::isPresentationAttribute):
     68        * html/HTMLParagraphElement.h:
     69        * html/HTMLPlugInElement.cpp:
     70        (WebCore::HTMLPlugInElement::isPresentationAttribute):
     71        * html/HTMLPlugInElement.h:
     72        * html/HTMLPreElement.cpp:
     73        (WebCore::HTMLPreElement::isPresentationAttribute):
     74        * html/HTMLPreElement.h:
     75        * html/HTMLSelectElement.cpp:
     76        (WebCore::HTMLSelectElement::isPresentationAttribute):
     77        * html/HTMLSelectElement.h:
     78        * html/HTMLTableCaptionElement.cpp:
     79        (WebCore::HTMLTableCaptionElement::isPresentationAttribute):
     80        * html/HTMLTableCaptionElement.h:
     81        * html/HTMLTableCellElement.cpp:
     82        (WebCore::HTMLTableCellElement::isPresentationAttribute):
     83        * html/HTMLTableCellElement.h:
     84        * html/HTMLTableColElement.cpp:
     85        (WebCore::HTMLTableColElement::isPresentationAttribute):
     86        * html/HTMLTableColElement.h:
     87        * html/HTMLTableElement.cpp:
     88        (WebCore::HTMLTableElement::isPresentationAttribute):
     89        * html/HTMLTableElement.h:
     90        * html/HTMLTablePartElement.cpp:
     91        (WebCore::HTMLTablePartElement::isPresentationAttribute):
     92        * html/HTMLTablePartElement.h:
     93        * html/HTMLTextAreaElement.cpp:
     94        (WebCore::HTMLTextAreaElement::isPresentationAttribute):
     95        * html/HTMLTextAreaElement.h:
     96        * html/HTMLUListElement.cpp:
     97        (WebCore::HTMLUListElement::isPresentationAttribute):
     98        * html/HTMLUListElement.h:
     99        * html/HTMLVideoElement.cpp:
     100        (WebCore::HTMLVideoElement::isPresentationAttribute):
     101        * html/HTMLVideoElement.h:
     102        * mathml/MathMLElement.cpp:
     103        (WebCore::MathMLElement::isPresentationAttribute):
     104        * mathml/MathMLElement.h:
     105        * svg/SVGImageElement.cpp:
     106        (WebCore::SVGImageElement::isPresentationAttribute):
     107        * svg/SVGImageElement.h:
     108        * svg/SVGStyledElement.cpp:
     109        (WebCore::SVGStyledElement::isPresentationAttribute):
     110        * svg/SVGStyledElement.h:
     111        * svg/SVGTextContentElement.cpp:
     112        (WebCore::SVGTextContentElement::isPresentationAttribute):
     113        * svg/SVGTextContentElement.h:
     114
    11152012-02-28  Enrica Casucci  <enrica@apple.com>
    2116
  • trunk/Source/WebCore/dom/StyledElement.cpp

    r108927 r109149  
    6767        parseAttribute(attr);
    6868
    69     if (isPresentationAttribute(attr)) {
     69    if (isPresentationAttribute(attr->name())) {
    7070        setAttributeStyleDirty();
    7171        setNeedsStyleRecalc(InlineStyleChange);
  • trunk/Source/WebCore/dom/StyledElement.h

    r108667 r109149  
    6565    virtual void copyNonAttributeProperties(const Element*);
    6666
    67     virtual bool isPresentationAttribute(Attribute*) const { return false; }
     67    virtual bool isPresentationAttribute(const QualifiedName&) const { return false; }
    6868    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) { }
    6969
  • trunk/Source/WebCore/html/HTMLBRElement.cpp

    r108885 r109149  
    5050}
    5151
    52 bool HTMLBRElement::isPresentationAttribute(Attribute* attr) const
     52bool HTMLBRElement::isPresentationAttribute(const QualifiedName& name) const
    5353{
    54     if (attr->name() == clearAttr)
     54    if (name == clearAttr)
    5555        return true;
    56     return HTMLElement::isPresentationAttribute(attr);
     56    return HTMLElement::isPresentationAttribute(name);
    5757}
    5858
  • trunk/Source/WebCore/html/HTMLBRElement.h

    r107554 r109149  
    3939    HTMLBRElement(const QualifiedName&, Document*);
    4040
    41     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     41    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4242    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4343
  • trunk/Source/WebCore/html/HTMLBodyElement.cpp

    r108345 r109149  
    6262}
    6363
    64 bool HTMLBodyElement::isPresentationAttribute(Attribute* attr) const
    65 {
    66     if (attr->name() == backgroundAttr || attr->name() == marginwidthAttr || attr->name() == leftmarginAttr || attr->name() == marginheightAttr || attr->name() == topmarginAttr || attr->name() == bgcolorAttr || attr->name() == textAttr || attr->name() == bgpropertiesAttr)
     64bool HTMLBodyElement::isPresentationAttribute(const QualifiedName& name) const
     65{
     66    if (name == backgroundAttr || name == marginwidthAttr || name == leftmarginAttr || name == marginheightAttr || name == topmarginAttr || name == bgcolorAttr || name == textAttr || name == bgpropertiesAttr)
    6767        return true;
    68     return HTMLElement::isPresentationAttribute(attr);
     68    return HTMLElement::isPresentationAttribute(name);
    6969}
    7070
  • trunk/Source/WebCore/html/HTMLBodyElement.h

    r107554 r109149  
    7272
    7373    virtual void parseAttribute(Attribute*) OVERRIDE;
    74     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     74    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    7575    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    7676
  • trunk/Source/WebCore/html/HTMLButtonElement.cpp

    r107554 r109149  
    8080}
    8181
    82 bool HTMLButtonElement::isPresentationAttribute(Attribute* attr) const
     82bool HTMLButtonElement::isPresentationAttribute(const QualifiedName& name) const
    8383{
    84     if (attr->name() == alignAttr) {
     84    if (name == alignAttr) {
    8585        // Don't map 'align' attribute.  This matches what Firefox and IE do, but not Opera.
    8686        // See http://bugs.webkit.org/show_bug.cgi?id=12071
     
    8888    }
    8989
    90     return HTMLFormControlElement::isPresentationAttribute(attr);
     90    return HTMLFormControlElement::isPresentationAttribute(name);
    9191}
    9292
  • trunk/Source/WebCore/html/HTMLButtonElement.h

    r107554 r109149  
    4545
    4646    virtual void parseAttribute(Attribute*) OVERRIDE;
    47     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     47    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4848    virtual void defaultEventHandler(Event*);
    4949    virtual bool appendFormData(FormDataList&, bool);
  • trunk/Source/WebCore/html/HTMLDivElement.cpp

    r108345 r109149  
    4949}
    5050
    51 bool HTMLDivElement::isPresentationAttribute(Attribute* attr) const
     51bool HTMLDivElement::isPresentationAttribute(const QualifiedName& name) const
    5252{
    53     if (attr->name() == alignAttr)
     53    if (name == alignAttr)
    5454        return true;
    55     return HTMLElement::isPresentationAttribute(attr);
     55    return HTMLElement::isPresentationAttribute(name);
    5656}
    5757
  • trunk/Source/WebCore/html/HTMLDivElement.h

    r107554 r109149  
    3737
    3838private:
    39     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     39    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4040    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4141};
  • trunk/Source/WebCore/html/HTMLElement.cpp

    r108885 r109149  
    160160}
    161161
    162 bool HTMLElement::isPresentationAttribute(Attribute* attr) const
    163 {
    164     if (attr->name() == alignAttr || attr->name() == contenteditableAttr || attr->name() == hiddenAttr || attr->name() == langAttr || attr->name().matches(XMLNames::langAttr) || attr->name() == draggableAttr || attr->name() == dirAttr)
     162bool HTMLElement::isPresentationAttribute(const QualifiedName& name) const
     163{
     164    if (name == alignAttr || name == contenteditableAttr || name == hiddenAttr || name == langAttr || name.matches(XMLNames::langAttr) || name == draggableAttr || name == dirAttr)
    165165        return true;
    166     return StyledElement::isPresentationAttribute(attr);
     166    return StyledElement::isPresentationAttribute(name);
    167167}
    168168
  • trunk/Source/WebCore/html/HTMLElement.h

    r108345 r109149  
    108108
    109109    virtual void parseAttribute(Attribute*) OVERRIDE;
    110     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     110    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    111111    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    112112
  • trunk/Source/WebCore/html/HTMLEmbedElement.cpp

    r108904 r109149  
    7575}
    7676
    77 bool HTMLEmbedElement::isPresentationAttribute(Attribute* attr) const
    78 {
    79     if (attr->name() == hiddenAttr)
     77bool HTMLEmbedElement::isPresentationAttribute(const QualifiedName& name) const
     78{
     79    if (name == hiddenAttr)
    8080        return true;
    81     return HTMLPlugInImageElement::isPresentationAttribute(attr);
     81    return HTMLPlugInImageElement::isPresentationAttribute(name);
    8282}
    8383
  • trunk/Source/WebCore/html/HTMLEmbedElement.h

    r108904 r109149  
    3636
    3737    virtual void parseAttribute(Attribute*) OVERRIDE;
    38     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     38    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    3939    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4040
  • trunk/Source/WebCore/html/HTMLFontElement.cpp

    r108451 r109149  
    161161}
    162162
    163 bool HTMLFontElement::isPresentationAttribute(Attribute* attr) const
     163bool HTMLFontElement::isPresentationAttribute(const QualifiedName& name) const
    164164{
    165     if (attr->name() == sizeAttr || attr->name() == colorAttr || attr->name() == faceAttr)
     165    if (name == sizeAttr || name == colorAttr || name == faceAttr)
    166166        return true;
    167     return HTMLElement::isPresentationAttribute(attr);
     167    return HTMLElement::isPresentationAttribute(name);
    168168}
    169169
  • trunk/Source/WebCore/html/HTMLFontElement.h

    r107554 r109149  
    3838    HTMLFontElement(const QualifiedName&, Document*);
    3939
    40     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     40    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4141    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4242};
  • trunk/Source/WebCore/html/HTMLFrameSetElement.cpp

    r107554 r109149  
    6565}
    6666
    67 bool HTMLFrameSetElement::isPresentationAttribute(Attribute* attr) const
    68 {
    69     if (attr->name() == bordercolorAttr)
     67bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) const
     68{
     69    if (name == bordercolorAttr)
    7070        return true;
    71     return HTMLElement::isPresentationAttribute(attr);
     71    return HTMLElement::isPresentationAttribute(name);
    7272}
    7373
  • trunk/Source/WebCore/html/HTMLFrameSetElement.h

    r107554 r109149  
    6969
    7070    virtual void parseAttribute(Attribute*) OVERRIDE;
    71     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     71    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    7272    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    7373
  • trunk/Source/WebCore/html/HTMLHRElement.cpp

    r108765 r109149  
    5050}
    5151
    52 bool HTMLHRElement::isPresentationAttribute(Attribute* attr) const
     52bool HTMLHRElement::isPresentationAttribute(const QualifiedName& name) const
    5353{
    54     if (attr->name() == alignAttr || attr->name() == widthAttr || attr->name() == colorAttr || attr->name() == noshadeAttr || attr->name() == sizeAttr)
     54    if (name == alignAttr || name == widthAttr || name == colorAttr || name == noshadeAttr || name == sizeAttr)
    5555        return true;
    56     return HTMLElement::isPresentationAttribute(attr);
     56    return HTMLElement::isPresentationAttribute(name);
    5757}
    5858
  • trunk/Source/WebCore/html/HTMLHRElement.h

    r107554 r109149  
    3838    HTMLHRElement(const QualifiedName&, Document*);
    3939
    40     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     40    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4141    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4242};
  • trunk/Source/WebCore/html/HTMLIFrameElement.cpp

    r108765 r109149  
    4949}
    5050
    51 bool HTMLIFrameElement::isPresentationAttribute(Attribute* attr) const
     51bool HTMLIFrameElement::isPresentationAttribute(const QualifiedName& name) const
    5252{
    53     if (attr->name() == widthAttr || attr->name() == heightAttr || attr->name() == alignAttr || attr->name() == frameborderAttr)
     53    if (name == widthAttr || name == heightAttr || name == alignAttr || name == frameborderAttr)
    5454        return true;
    55     return HTMLFrameElementBase::isPresentationAttribute(attr);
     55    return HTMLFrameElementBase::isPresentationAttribute(name);
    5656}
    5757
  • trunk/Source/WebCore/html/HTMLIFrameElement.h

    r107554 r109149  
    3737
    3838    virtual void parseAttribute(Attribute*) OVERRIDE;
    39     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     39    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4040    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4141
  • trunk/Source/WebCore/html/HTMLImageElement.cpp

    r108345 r109149  
    7979}
    8080
    81 bool HTMLImageElement::isPresentationAttribute(Attribute* attr) const
    82 {
    83     if (attr->name() == widthAttr || attr->name() == heightAttr || attr->name() == borderAttr || attr->name() == vspaceAttr || attr->name() == hspaceAttr || attr->name() == alignAttr || attr->name() == valignAttr)
     81bool HTMLImageElement::isPresentationAttribute(const QualifiedName& name) const
     82{
     83    if (name == widthAttr || name == heightAttr || name == borderAttr || name == vspaceAttr || name == hspaceAttr || name == alignAttr || name == valignAttr)
    8484        return true;
    85     return HTMLElement::isPresentationAttribute(attr);
     85    return HTMLElement::isPresentationAttribute(name);
    8686}
    8787
  • trunk/Source/WebCore/html/HTMLImageElement.h

    r107554 r109149  
    8585private:
    8686    virtual void parseAttribute(Attribute*) OVERRIDE;
    87     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     87    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    8888    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    8989
  • trunk/Source/WebCore/html/HTMLInputElement.cpp

    r108228 r109149  
    661661}
    662662
    663 bool HTMLInputElement::isPresentationAttribute(Attribute* attr) const
    664 {
    665     if (attr->name() == vspaceAttr || attr->name() == hspaceAttr || attr->name() == alignAttr || attr->name() == widthAttr || attr->name() == heightAttr || (attr->name() == borderAttr && isImageButton()))
     663bool HTMLInputElement::isPresentationAttribute(const QualifiedName& name) const
     664{
     665    if (name == vspaceAttr || name == hspaceAttr || name == alignAttr || name == widthAttr || name == heightAttr || (name == borderAttr && isImageButton()))
    666666        return true;
    667     return HTMLTextFormControlElement::isPresentationAttribute(attr);
     667    return HTMLTextFormControlElement::isPresentationAttribute(name);
    668668}
    669669
  • trunk/Source/WebCore/html/HTMLInputElement.h

    r107555 r109149  
    277277
    278278    virtual void parseAttribute(Attribute*) OVERRIDE;
    279     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     279    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    280280    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    281281    virtual void finishParsingChildren();
  • trunk/Source/WebCore/html/HTMLLIElement.cpp

    r108345 r109149  
    5050}
    5151
    52 bool HTMLLIElement::isPresentationAttribute(Attribute* attr) const
     52bool HTMLLIElement::isPresentationAttribute(const QualifiedName& name) const
    5353{
    54     if (attr->name() == typeAttr)
     54    if (name == typeAttr)
    5555        return true;
    56     return HTMLElement::isPresentationAttribute(attr);
     56    return HTMLElement::isPresentationAttribute(name);
    5757}
    5858
  • trunk/Source/WebCore/html/HTMLLIElement.h

    r107554 r109149  
    3737
    3838    virtual void parseAttribute(Attribute*) OVERRIDE;
    39     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     39    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4040    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4141
  • trunk/Source/WebCore/html/HTMLMarqueeElement.cpp

    r108345 r109149  
    5959}
    6060
    61 bool HTMLMarqueeElement::isPresentationAttribute(Attribute* attr) const
     61bool HTMLMarqueeElement::isPresentationAttribute(const QualifiedName& name) const
    6262{
    63     if (attr->name() == widthAttr || attr->name() == heightAttr || attr->name() == bgcolorAttr || attr->name() == vspaceAttr || attr->name() == hspaceAttr || attr->name() == scrollamountAttr || attr->name() == scrolldelayAttr || attr->name() == loopAttr || attr->name() == behaviorAttr || attr->name() == directionAttr)
     63    if (name == widthAttr || name == heightAttr || name == bgcolorAttr || name == vspaceAttr || name == hspaceAttr || name == scrollamountAttr || name == scrolldelayAttr || name == loopAttr || name == behaviorAttr || name == directionAttr)
    6464        return true;
    65     return HTMLElement::isPresentationAttribute(attr);
     65    return HTMLElement::isPresentationAttribute(name);
    6666}
    6767
  • trunk/Source/WebCore/html/HTMLMarqueeElement.h

    r107579 r109149  
    5454    HTMLMarqueeElement(const QualifiedName&, Document*);
    5555
    56     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     56    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    5757    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    5858
  • trunk/Source/WebCore/html/HTMLOListElement.cpp

    r108345 r109149  
    5555}
    5656
    57 bool HTMLOListElement::isPresentationAttribute(Attribute* attr) const
     57bool HTMLOListElement::isPresentationAttribute(const QualifiedName& name) const
    5858{
    59     if (attr->name() == typeAttr)
     59    if (name == typeAttr)
    6060        return true;
    61     return HTMLElement::isPresentationAttribute(attr);
     61    return HTMLElement::isPresentationAttribute(name);
    6262}
    6363
  • trunk/Source/WebCore/html/HTMLOListElement.h

    r107554 r109149  
    5555
    5656    virtual void parseAttribute(Attribute*) OVERRIDE;
    57     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     57    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    5858    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    5959
  • trunk/Source/WebCore/html/HTMLObjectElement.cpp

    r107554 r109149  
    7878}
    7979
    80 bool HTMLObjectElement::isPresentationAttribute(Attribute* attr) const
    81 {
    82     if (attr->name() == borderAttr)
     80bool HTMLObjectElement::isPresentationAttribute(const QualifiedName& name) const
     81{
     82    if (name == borderAttr)
    8383        return true;
    84     return HTMLPlugInImageElement::isPresentationAttribute(attr);
     84    return HTMLPlugInImageElement::isPresentationAttribute(name);
    8585}
    8686
  • trunk/Source/WebCore/html/HTMLObjectElement.h

    r107554 r109149  
    6868
    6969    virtual void parseAttribute(Attribute*) OVERRIDE;
    70     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     70    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    7171    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    7272
  • trunk/Source/WebCore/html/HTMLParagraphElement.cpp

    r108345 r109149  
    4545}
    4646
    47 bool HTMLParagraphElement::isPresentationAttribute(Attribute* attr) const
     47bool HTMLParagraphElement::isPresentationAttribute(const QualifiedName& name) const
    4848{
    49     if (attr->name() == alignAttr)
     49    if (name == alignAttr)
    5050        return true;
    51     return HTMLElement::isPresentationAttribute(attr);
     51    return HTMLElement::isPresentationAttribute(name);
    5252}
    5353
  • trunk/Source/WebCore/html/HTMLParagraphElement.h

    r107554 r109149  
    3535    HTMLParagraphElement(const QualifiedName&, Document*);
    3636
    37     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     37    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    3838    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    3939};
  • trunk/Source/WebCore/html/HTMLPlugInElement.cpp

    r107554 r109149  
    141141}
    142142
    143 bool HTMLPlugInElement::isPresentationAttribute(Attribute* attr) const
    144 {
    145     if (attr->name() == widthAttr || attr->name() == heightAttr || attr->name() == vspaceAttr || attr->name() == hspaceAttr || attr->name() == alignAttr)
     143bool HTMLPlugInElement::isPresentationAttribute(const QualifiedName& name) const
     144{
     145    if (name == widthAttr || name == heightAttr || name == vspaceAttr || name == hspaceAttr || name == alignAttr)
    146146        return true;
    147     return HTMLFrameOwnerElement::isPresentationAttribute(attr);
     147    return HTMLFrameOwnerElement::isPresentationAttribute(name);
    148148}
    149149
  • trunk/Source/WebCore/html/HTMLPlugInElement.h

    r107554 r109149  
    5959    virtual void detach();
    6060    virtual void removedFromDocument();
    61     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     61    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    6262    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    6363
  • trunk/Source/WebCore/html/HTMLPreElement.cpp

    r107554 r109149  
    4343}
    4444
    45 bool HTMLPreElement::isPresentationAttribute(Attribute* attr) const
     45bool HTMLPreElement::isPresentationAttribute(const QualifiedName& name) const
    4646{
    47     if (attr->name() == wrapAttr)
     47    if (name == wrapAttr)
    4848        return true;
    49     return HTMLElement::isPresentationAttribute(attr);
     49    return HTMLElement::isPresentationAttribute(name);
    5050}
    5151
  • trunk/Source/WebCore/html/HTMLPreElement.h

    r107554 r109149  
    3535    HTMLPreElement(const QualifiedName&, Document*);
    3636
    37     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     37    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    3838    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    3939};
  • trunk/Source/WebCore/html/HTMLSelectElement.cpp

    r108758 r109149  
    258258}
    259259
    260 bool HTMLSelectElement::isPresentationAttribute(Attribute* attr) const
    261 {
    262     if (attr->name() == alignAttr) {
     260bool HTMLSelectElement::isPresentationAttribute(const QualifiedName& name) const
     261{
     262    if (name == alignAttr) {
    263263        // Don't map 'align' attribute. This matches what Firefox, Opera and IE do.
    264264        // See http://bugs.webkit.org/show_bug.cgi?id=12072
     
    266266    }
    267267
    268     return HTMLFormControlElementWithState::isPresentationAttribute(attr);
     268    return HTMLFormControlElementWithState::isPresentationAttribute(name);
    269269}
    270270
  • trunk/Source/WebCore/html/HTMLSelectElement.h

    r108758 r109149  
    123123
    124124    virtual void parseAttribute(Attribute*) OVERRIDE;
    125     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     125    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    126126
    127127    virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OVERRIDE;
  • trunk/Source/WebCore/html/HTMLTableCaptionElement.cpp

    r108345 r109149  
    4545}
    4646
    47 bool HTMLTableCaptionElement::isPresentationAttribute(Attribute* attr) const
     47bool HTMLTableCaptionElement::isPresentationAttribute(const QualifiedName& name) const
    4848{
    49     if (attr->name() == alignAttr)
     49    if (name == alignAttr)
    5050        return true;
    51     return HTMLElement::isPresentationAttribute(attr);
     51    return HTMLElement::isPresentationAttribute(name);
    5252}
    5353
  • trunk/Source/WebCore/html/HTMLTableCaptionElement.h

    r107580 r109149  
    3838    HTMLTableCaptionElement(const QualifiedName&, Document*);
    3939
    40     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     40    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4141    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4242};
  • trunk/Source/WebCore/html/HTMLTableCellElement.cpp

    r108345 r109149  
    7676}
    7777
    78 bool HTMLTableCellElement::isPresentationAttribute(Attribute* attr) const
     78bool HTMLTableCellElement::isPresentationAttribute(const QualifiedName& name) const
    7979{
    80     if (attr->name() == nowrapAttr || attr->name() == widthAttr || attr->name() == heightAttr)
     80    if (name == nowrapAttr || name == widthAttr || name == heightAttr)
    8181        return true;
    82     return HTMLTablePartElement::isPresentationAttribute(attr);
     82    return HTMLTablePartElement::isPresentationAttribute(name);
    8383}
    8484
  • trunk/Source/WebCore/html/HTMLTableCellElement.h

    r107554 r109149  
    5555
    5656    virtual void parseAttribute(Attribute*) OVERRIDE;
    57     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     57    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    5858    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    5959
  • trunk/Source/WebCore/html/HTMLTableColElement.cpp

    r107554 r109149  
    4848}
    4949
    50 bool HTMLTableColElement::isPresentationAttribute(Attribute* attr) const
     50bool HTMLTableColElement::isPresentationAttribute(const QualifiedName& name) const
    5151{
    52     if (attr->name() == widthAttr)
     52    if (name == widthAttr)
    5353        return true;
    54     return HTMLTablePartElement::isPresentationAttribute(attr);
     54    return HTMLTablePartElement::isPresentationAttribute(name);
    5555}
    5656
  • trunk/Source/WebCore/html/HTMLTableColElement.h

    r107554 r109149  
    4444
    4545    virtual void parseAttribute(Attribute*) OVERRIDE;
    46     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     46    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4747    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4848    virtual StylePropertySet* additionalAttributeStyle() OVERRIDE;
  • trunk/Source/WebCore/html/HTMLTableElement.cpp

    r108901 r109149  
    353353}
    354354
    355 bool HTMLTableElement::isPresentationAttribute(Attribute* attr) const
    356 {
    357     if (attr->name() == widthAttr || attr->name() == heightAttr || attr->name() == bgcolorAttr || attr->name() == backgroundAttr || attr->name() == valignAttr || attr->name() == vspaceAttr || attr->name() == hspaceAttr || attr->name() == alignAttr || attr->name() == cellspacingAttr || attr->name() == borderAttr || attr->name() == bordercolorAttr || attr->name() == frameAttr || attr->name() == rulesAttr)
     355bool HTMLTableElement::isPresentationAttribute(const QualifiedName& name) const
     356{
     357    if (name == widthAttr || name == heightAttr || name == bgcolorAttr || name == backgroundAttr || name == valignAttr || name == vspaceAttr || name == hspaceAttr || name == alignAttr || name == cellspacingAttr || name == borderAttr || name == bordercolorAttr || name == frameAttr || name == rulesAttr)
    358358        return true;
    359     return HTMLElement::isPresentationAttribute(attr);
     359    return HTMLElement::isPresentationAttribute(name);
    360360}
    361361
  • trunk/Source/WebCore/html/HTMLTableElement.h

    r108901 r109149  
    7272
    7373    virtual void parseAttribute(Attribute*) OVERRIDE;
    74     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     74    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    7575    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    7676    virtual bool isURLAttribute(Attribute*) const;
  • trunk/Source/WebCore/html/HTMLTablePartElement.cpp

    r108765 r109149  
    3939using namespace HTMLNames;
    4040
    41 bool HTMLTablePartElement::isPresentationAttribute(Attribute* attr) const
     41bool HTMLTablePartElement::isPresentationAttribute(const QualifiedName& name) const
    4242{
    43     if (attr->name() == bgcolorAttr || attr->name() == backgroundAttr || attr->name() == bordercolorAttr || attr->name() == valignAttr || attr->name() == alignAttr || attr->name() == heightAttr)
     43    if (name == bgcolorAttr || name == backgroundAttr || name == bordercolorAttr || name == valignAttr || name == alignAttr || name == heightAttr)
    4444        return true;
    45     return HTMLElement::isPresentationAttribute(attr);
     45    return HTMLElement::isPresentationAttribute(name);
    4646}
    4747
  • trunk/Source/WebCore/html/HTMLTablePartElement.h

    r107554 r109149  
    4040    }
    4141
    42     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     42    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4343    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4444
  • trunk/Source/WebCore/html/HTMLTextAreaElement.cpp

    r108959 r109149  
    120120}
    121121
    122 bool HTMLTextAreaElement::isPresentationAttribute(Attribute* attr) const
    123 {
    124     if (attr->name() == alignAttr) {
     122bool HTMLTextAreaElement::isPresentationAttribute(const QualifiedName& name) const
     123{
     124    if (name == alignAttr) {
    125125        // Don't map 'align' attribute.  This matches what Firefox, Opera and IE do.
    126126        // See http://bugs.webkit.org/show_bug.cgi?id=7075
     
    128128    }
    129129
    130     if (attr->name() == wrapAttr)
     130    if (name == wrapAttr)
    131131        return true;
    132     return HTMLTextFormControlElement::isPresentationAttribute(attr);
     132    return HTMLTextFormControlElement::isPresentationAttribute(name);
    133133}
    134134
  • trunk/Source/WebCore/html/HTMLTextAreaElement.h

    r107554 r109149  
    9595    virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
    9696    virtual void parseAttribute(Attribute*) OVERRIDE;
    97     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     97    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    9898    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    9999    virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
  • trunk/Source/WebCore/html/HTMLUListElement.cpp

    r108345 r109149  
    4848}
    4949
    50 bool HTMLUListElement::isPresentationAttribute(Attribute* attr) const
     50bool HTMLUListElement::isPresentationAttribute(const QualifiedName& name) const
    5151{
    52     if (attr->name() == typeAttr)
     52    if (name == typeAttr)
    5353        return true;
    54     return HTMLElement::isPresentationAttribute(attr);
     54    return HTMLElement::isPresentationAttribute(name);
    5555}
    5656
  • trunk/Source/WebCore/html/HTMLUListElement.h

    r107554 r109149  
    3636    HTMLUListElement(const QualifiedName&, Document*);
    3737
    38     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     38    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    3939    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4040};
  • trunk/Source/WebCore/html/HTMLVideoElement.cpp

    r107554 r109149  
    106106}
    107107
    108 bool HTMLVideoElement::isPresentationAttribute(Attribute* attr) const
    109 {
    110     if (attr->name() == widthAttr || attr->name() == heightAttr)
     108bool HTMLVideoElement::isPresentationAttribute(const QualifiedName& name) const
     109{
     110    if (name == widthAttr || name == heightAttr)
    111111        return true;
    112     return HTMLMediaElement::isPresentationAttribute(attr);
     112    return HTMLMediaElement::isPresentationAttribute(name);
    113113}
    114114
  • trunk/Source/WebCore/html/HTMLVideoElement.h

    r107554 r109149  
    7777    virtual void detach();
    7878    virtual void parseAttribute(Attribute*) OVERRIDE;
    79     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     79    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    8080    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    8181    virtual bool isVideo() const { return true; }
  • trunk/Source/WebCore/mathml/MathMLElement.cpp

    r108345 r109149  
    4949}
    5050
    51 bool MathMLElement::isPresentationAttribute(Attribute* attr) const
     51bool MathMLElement::isPresentationAttribute(const QualifiedName& name) const
    5252{
    53     if (attr->name() == mathbackgroundAttr || attr->name() == mathsizeAttr || attr->name() == mathcolorAttr || attr->name() == fontsizeAttr || attr->name() == backgroundAttr || attr->name() == colorAttr || attr->name() == fontstyleAttr || attr->name() == fontweightAttr || attr->name() == fontfamilyAttr)
     53    if (name == mathbackgroundAttr || name == mathsizeAttr || name == mathcolorAttr || name == fontsizeAttr || name == backgroundAttr || name == colorAttr || name == fontstyleAttr || name == fontweightAttr || name == fontfamilyAttr)
    5454        return true;
    55     return StyledElement::isPresentationAttribute(attr);
     55    return StyledElement::isPresentationAttribute(name);
    5656}
    5757
  • trunk/Source/WebCore/mathml/MathMLElement.h

    r107554 r109149  
    4343private:   
    4444    virtual bool isMathMLElement() const { return true; }
    45     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     45    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    4646    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    4747};
  • trunk/Source/WebCore/svg/SVGImageElement.cpp

    r108345 r109149  
    9292}
    9393
    94 bool SVGImageElement::isPresentationAttribute(Attribute* attr) const
    95 {
    96     if (attr->name() == SVGNames::widthAttr || attr->name() == SVGNames::heightAttr)
     94bool SVGImageElement::isPresentationAttribute(const QualifiedName& name) const
     95{
     96    if (name == SVGNames::widthAttr || name == SVGNames::heightAttr)
    9797        return true;
    98     return SVGStyledTransformableElement::isPresentationAttribute(attr);
     98    return SVGStyledTransformableElement::isPresentationAttribute(name);
    9999}
    100100
  • trunk/Source/WebCore/svg/SVGImageElement.h

    r107554 r109149  
    5151    bool isSupportedAttribute(const QualifiedName&);
    5252    virtual void parseAttribute(Attribute*) OVERRIDE;
    53     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     53    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    5454    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    5555    virtual void svgAttributeChanged(const QualifiedName&);
  • trunk/Source/WebCore/svg/SVGStyledElement.cpp

    r109097 r109149  
    280280}
    281281
    282 bool SVGStyledElement::isPresentationAttribute(Attribute* attr) const
    283 {
    284     if (SVGStyledElement::cssPropertyIdForSVGAttributeName(attr->name()) > 0)
     282bool SVGStyledElement::isPresentationAttribute(const QualifiedName& name) const
     283{
     284    if (SVGStyledElement::cssPropertyIdForSVGAttributeName(name) > 0)
    285285        return true;
    286     return SVGElement::isPresentationAttribute(attr);
     286    return SVGElement::isPresentationAttribute(name);
    287287}
    288288
  • trunk/Source/WebCore/svg/SVGStyledElement.h

    r107554 r109149  
    6767
    6868    virtual void parseAttribute(Attribute*) OVERRIDE;
    69     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     69    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    7070    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    7171    virtual void svgAttributeChanged(const QualifiedName&);
  • trunk/Source/WebCore/svg/SVGTextContentElement.cpp

    r108345 r109149  
    229229}
    230230
    231 bool SVGTextContentElement::isPresentationAttribute(Attribute* attr) const
    232 {
    233     if (attr->name().matches(XMLNames::spaceAttr))
     231bool SVGTextContentElement::isPresentationAttribute(const QualifiedName& name) const
     232{
     233    if (name.matches(XMLNames::spaceAttr))
    234234        return true;
    235     return SVGStyledElement::isPresentationAttribute(attr);
     235    return SVGStyledElement::isPresentationAttribute(name);
    236236}
    237237
  • trunk/Source/WebCore/svg/SVGTextContentElement.h

    r107554 r109149  
    105105    bool isSupportedAttribute(const QualifiedName&);
    106106    virtual void parseAttribute(Attribute*) OVERRIDE;
    107     virtual bool isPresentationAttribute(Attribute*) const OVERRIDE;
     107    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    108108    virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE;
    109109    virtual void svgAttributeChanged(const QualifiedName&);
Note: See TracChangeset for help on using the changeset viewer.