Changeset 96307 in webkit


Ignore:
Timestamp:
Sep 29, 2011 12:23:08 AM (13 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION(87010): elements in ECMA-cloud neither filled nor blurred
https://bugs.webkit.org/show_bug.cgi?id=68679
<rdar://problem/10204649>

Reviewed by Nikolas Zimmermann.

Source/WebCore:

Strip prefixes from SVG attributes before testing if they're supported.
Namespaced attributes will be matched using their namespace instead of
the (user-choosable) prefix.

Test: svg/custom/xlink-custom-namespace.svg

  • svg/SVGAElement.cpp:

(WebCore::SVGAElement::isSupportedAttribute):

  • svg/SVGAnimateMotionElement.cpp:

(WebCore::SVGAnimateMotionElement::isSupportedAttribute):

  • svg/SVGAnimateTransformElement.cpp:

(WebCore::SVGAnimateTransformElement::isSupportedAttribute):

  • svg/SVGAnimationElement.cpp:

(WebCore::SVGAnimationElement::isSupportedAttribute):

  • svg/SVGCircleElement.cpp:

(WebCore::SVGCircleElement::isSupportedAttribute):

  • svg/SVGClipPathElement.cpp:

(WebCore::SVGClipPathElement::isSupportedAttribute):

  • svg/SVGComponentTransferFunctionElement.cpp:

(WebCore::SVGComponentTransferFunctionElement::isSupportedAttribute):

  • svg/SVGCursorElement.cpp:

(WebCore::SVGCursorElement::isSupportedAttribute):

  • svg/SVGElement.h:

(WebCore::SVGAttributeHashTranslator::hash):
(WebCore::SVGAttributeHashTranslator::equal):

  • svg/SVGEllipseElement.cpp:

(WebCore::SVGEllipseElement::isSupportedAttribute):

  • svg/SVGExternalResourcesRequired.h:
  • svg/SVGFEBlendElement.cpp:

(WebCore::SVGFEBlendElement::isSupportedAttribute):

  • svg/SVGFEColorMatrixElement.cpp:

(WebCore::SVGFEColorMatrixElement::isSupportedAttribute):

  • svg/SVGFEComponentTransferElement.cpp:

(WebCore::SVGFEComponentTransferElement::isSupportedAttribute):

  • svg/SVGFECompositeElement.cpp:

(WebCore::SVGFECompositeElement::isSupportedAttribute):

  • svg/SVGFEConvolveMatrixElement.cpp:

(WebCore::SVGFEConvolveMatrixElement::isSupportedAttribute):

  • svg/SVGFEDiffuseLightingElement.cpp:

(WebCore::SVGFEDiffuseLightingElement::isSupportedAttribute):

  • svg/SVGFEDisplacementMapElement.cpp:

(WebCore::SVGFEDisplacementMapElement::isSupportedAttribute):

  • svg/SVGFEDropShadowElement.cpp:

(WebCore::SVGFEDropShadowElement::isSupportedAttribute):

  • svg/SVGFEGaussianBlurElement.cpp:

(WebCore::SVGFEGaussianBlurElement::isSupportedAttribute):

  • svg/SVGFEImageElement.cpp:

(WebCore::SVGFEImageElement::isSupportedAttribute):

  • svg/SVGFELightElement.cpp:

(WebCore::SVGFELightElement::isSupportedAttribute):

  • svg/SVGFEMergeNodeElement.cpp:

(WebCore::SVGFEMergeNodeElement::isSupportedAttribute):

  • svg/SVGFEMorphologyElement.cpp:

(WebCore::SVGFEMorphologyElement::isSupportedAttribute):

  • svg/SVGFEOffsetElement.cpp:

(WebCore::SVGFEOffsetElement::isSupportedAttribute):

  • svg/SVGFESpecularLightingElement.cpp:

(WebCore::SVGFESpecularLightingElement::isSupportedAttribute):

  • svg/SVGFETileElement.cpp:

(WebCore::SVGFETileElement::isSupportedAttribute):

  • svg/SVGFETurbulenceElement.cpp:

(WebCore::SVGFETurbulenceElement::isSupportedAttribute):

  • svg/SVGFilterElement.cpp:

(WebCore::SVGFilterElement::isSupportedAttribute):

  • svg/SVGFilterPrimitiveStandardAttributes.cpp:

(WebCore::SVGFilterPrimitiveStandardAttributes::isSupportedAttribute):

  • svg/SVGForeignObjectElement.cpp:

(WebCore::SVGForeignObjectElement::isSupportedAttribute):

  • svg/SVGGElement.cpp:

(WebCore::SVGGElement::isSupportedAttribute):

  • svg/SVGGradientElement.cpp:

(WebCore::SVGGradientElement::isSupportedAttribute):

  • svg/SVGImageElement.cpp:

(WebCore::SVGImageElement::isSupportedAttribute):

  • svg/SVGLineElement.cpp:

(WebCore::SVGLineElement::isSupportedAttribute):

  • svg/SVGLinearGradientElement.cpp:

(WebCore::SVGLinearGradientElement::isSupportedAttribute):

  • svg/SVGMPathElement.cpp:

(WebCore::SVGMPathElement::isSupportedAttribute):

  • svg/SVGMarkerElement.cpp:

(WebCore::SVGMarkerElement::isSupportedAttribute):

  • svg/SVGMaskElement.cpp:

(WebCore::SVGMaskElement::isSupportedAttribute):

  • svg/SVGPathElement.cpp:

(WebCore::SVGPathElement::isSupportedAttribute):

  • svg/SVGPatternElement.cpp:

(WebCore::SVGPatternElement::isSupportedAttribute):

  • svg/SVGPolyElement.cpp:

(WebCore::SVGPolyElement::isSupportedAttribute):

  • svg/SVGRadialGradientElement.cpp:

(WebCore::SVGRadialGradientElement::isSupportedAttribute):

  • svg/SVGRectElement.cpp:

(WebCore::SVGRectElement::isSupportedAttribute):

  • svg/SVGScriptElement.cpp:

(WebCore::SVGScriptElement::isSupportedAttribute):

  • svg/SVGStopElement.cpp:

(WebCore::SVGStopElement::isSupportedAttribute):

  • svg/SVGStyleElement.cpp:

(WebCore::SVGStyleElement::isSupportedAttribute):

  • svg/SVGStyledTransformableElement.cpp:

(WebCore::SVGStyledTransformableElement::isSupportedAttribute):

  • svg/SVGSymbolElement.cpp:

(WebCore::SVGSymbolElement::isSupportedAttribute):

  • svg/SVGTRefElement.cpp:

(WebCore::SVGTRefElement::isSupportedAttribute):

  • svg/SVGTextContentElement.cpp:

(WebCore::SVGTextContentElement::isSupportedAttribute):

  • svg/SVGTextElement.cpp:

(WebCore::SVGTextElement::isSupportedAttribute):

  • svg/SVGTextPathElement.cpp:

(WebCore::SVGTextPathElement::isSupportedAttribute):

  • svg/SVGTextPositioningElement.cpp:

(WebCore::SVGTextPositioningElement::isSupportedAttribute):

  • svg/SVGURIReference.cpp:

(WebCore::SVGURIReference::addSupportedAttributes):

  • svg/SVGUseElement.cpp:

(WebCore::SVGUseElement::isSupportedAttribute):

  • svg/SVGViewElement.cpp:

(WebCore::SVGViewElement::isSupportedAttribute):

LayoutTests:

Add a test ensuring that using xlink:href with a different prefix (i.e. xl:href)
works correctly.

  • svg/custom/xlink-custom-namespace-expected.png: Added.
  • svg/custom/xlink-custom-namespace-expected.txt: Added.
  • svg/custom/xlink-custom-namespace.svg: Added.
Location:
trunk
Files:
3 added
59 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r96306 r96307  
     12011-09-29  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION(87010): elements in ECMA-cloud neither filled nor blurred
     4        https://bugs.webkit.org/show_bug.cgi?id=68679
     5        <rdar://problem/10204649>
     6
     7        Reviewed by Nikolas Zimmermann.
     8
     9        Add a test ensuring that using xlink:href with a different prefix (i.e. xl:href)
     10        works correctly.
     11
     12        * svg/custom/xlink-custom-namespace-expected.png: Added.
     13        * svg/custom/xlink-custom-namespace-expected.txt: Added.
     14        * svg/custom/xlink-custom-namespace.svg: Added.
     15
    1162011-09-28  Filip Pizlo  <fpizlo@apple.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r96301 r96307  
     12011-09-29  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION(87010): elements in ECMA-cloud neither filled nor blurred
     4        https://bugs.webkit.org/show_bug.cgi?id=68679
     5        <rdar://problem/10204649>
     6
     7        Reviewed by Nikolas Zimmermann.
     8
     9        Strip prefixes from SVG attributes before testing if they're supported.
     10        Namespaced attributes will be matched using their namespace instead of
     11        the (user-choosable) prefix.
     12
     13        Test: svg/custom/xlink-custom-namespace.svg
     14
     15        * svg/SVGAElement.cpp:
     16        (WebCore::SVGAElement::isSupportedAttribute):
     17        * svg/SVGAnimateMotionElement.cpp:
     18        (WebCore::SVGAnimateMotionElement::isSupportedAttribute):
     19        * svg/SVGAnimateTransformElement.cpp:
     20        (WebCore::SVGAnimateTransformElement::isSupportedAttribute):
     21        * svg/SVGAnimationElement.cpp:
     22        (WebCore::SVGAnimationElement::isSupportedAttribute):
     23        * svg/SVGCircleElement.cpp:
     24        (WebCore::SVGCircleElement::isSupportedAttribute):
     25        * svg/SVGClipPathElement.cpp:
     26        (WebCore::SVGClipPathElement::isSupportedAttribute):
     27        * svg/SVGComponentTransferFunctionElement.cpp:
     28        (WebCore::SVGComponentTransferFunctionElement::isSupportedAttribute):
     29        * svg/SVGCursorElement.cpp:
     30        (WebCore::SVGCursorElement::isSupportedAttribute):
     31        * svg/SVGElement.h:
     32        (WebCore::SVGAttributeHashTranslator::hash):
     33        (WebCore::SVGAttributeHashTranslator::equal):
     34        * svg/SVGEllipseElement.cpp:
     35        (WebCore::SVGEllipseElement::isSupportedAttribute):
     36        * svg/SVGExternalResourcesRequired.h:
     37        * svg/SVGFEBlendElement.cpp:
     38        (WebCore::SVGFEBlendElement::isSupportedAttribute):
     39        * svg/SVGFEColorMatrixElement.cpp:
     40        (WebCore::SVGFEColorMatrixElement::isSupportedAttribute):
     41        * svg/SVGFEComponentTransferElement.cpp:
     42        (WebCore::SVGFEComponentTransferElement::isSupportedAttribute):
     43        * svg/SVGFECompositeElement.cpp:
     44        (WebCore::SVGFECompositeElement::isSupportedAttribute):
     45        * svg/SVGFEConvolveMatrixElement.cpp:
     46        (WebCore::SVGFEConvolveMatrixElement::isSupportedAttribute):
     47        * svg/SVGFEDiffuseLightingElement.cpp:
     48        (WebCore::SVGFEDiffuseLightingElement::isSupportedAttribute):
     49        * svg/SVGFEDisplacementMapElement.cpp:
     50        (WebCore::SVGFEDisplacementMapElement::isSupportedAttribute):
     51        * svg/SVGFEDropShadowElement.cpp:
     52        (WebCore::SVGFEDropShadowElement::isSupportedAttribute):
     53        * svg/SVGFEGaussianBlurElement.cpp:
     54        (WebCore::SVGFEGaussianBlurElement::isSupportedAttribute):
     55        * svg/SVGFEImageElement.cpp:
     56        (WebCore::SVGFEImageElement::isSupportedAttribute):
     57        * svg/SVGFELightElement.cpp:
     58        (WebCore::SVGFELightElement::isSupportedAttribute):
     59        * svg/SVGFEMergeNodeElement.cpp:
     60        (WebCore::SVGFEMergeNodeElement::isSupportedAttribute):
     61        * svg/SVGFEMorphologyElement.cpp:
     62        (WebCore::SVGFEMorphologyElement::isSupportedAttribute):
     63        * svg/SVGFEOffsetElement.cpp:
     64        (WebCore::SVGFEOffsetElement::isSupportedAttribute):
     65        * svg/SVGFESpecularLightingElement.cpp:
     66        (WebCore::SVGFESpecularLightingElement::isSupportedAttribute):
     67        * svg/SVGFETileElement.cpp:
     68        (WebCore::SVGFETileElement::isSupportedAttribute):
     69        * svg/SVGFETurbulenceElement.cpp:
     70        (WebCore::SVGFETurbulenceElement::isSupportedAttribute):
     71        * svg/SVGFilterElement.cpp:
     72        (WebCore::SVGFilterElement::isSupportedAttribute):
     73        * svg/SVGFilterPrimitiveStandardAttributes.cpp:
     74        (WebCore::SVGFilterPrimitiveStandardAttributes::isSupportedAttribute):
     75        * svg/SVGForeignObjectElement.cpp:
     76        (WebCore::SVGForeignObjectElement::isSupportedAttribute):
     77        * svg/SVGGElement.cpp:
     78        (WebCore::SVGGElement::isSupportedAttribute):
     79        * svg/SVGGradientElement.cpp:
     80        (WebCore::SVGGradientElement::isSupportedAttribute):
     81        * svg/SVGImageElement.cpp:
     82        (WebCore::SVGImageElement::isSupportedAttribute):
     83        * svg/SVGLineElement.cpp:
     84        (WebCore::SVGLineElement::isSupportedAttribute):
     85        * svg/SVGLinearGradientElement.cpp:
     86        (WebCore::SVGLinearGradientElement::isSupportedAttribute):
     87        * svg/SVGMPathElement.cpp:
     88        (WebCore::SVGMPathElement::isSupportedAttribute):
     89        * svg/SVGMarkerElement.cpp:
     90        (WebCore::SVGMarkerElement::isSupportedAttribute):
     91        * svg/SVGMaskElement.cpp:
     92        (WebCore::SVGMaskElement::isSupportedAttribute):
     93        * svg/SVGPathElement.cpp:
     94        (WebCore::SVGPathElement::isSupportedAttribute):
     95        * svg/SVGPatternElement.cpp:
     96        (WebCore::SVGPatternElement::isSupportedAttribute):
     97        * svg/SVGPolyElement.cpp:
     98        (WebCore::SVGPolyElement::isSupportedAttribute):
     99        * svg/SVGRadialGradientElement.cpp:
     100        (WebCore::SVGRadialGradientElement::isSupportedAttribute):
     101        * svg/SVGRectElement.cpp:
     102        (WebCore::SVGRectElement::isSupportedAttribute):
     103        * svg/SVGScriptElement.cpp:
     104        (WebCore::SVGScriptElement::isSupportedAttribute):
     105        * svg/SVGStopElement.cpp:
     106        (WebCore::SVGStopElement::isSupportedAttribute):
     107        * svg/SVGStyleElement.cpp:
     108        (WebCore::SVGStyleElement::isSupportedAttribute):
     109        * svg/SVGStyledTransformableElement.cpp:
     110        (WebCore::SVGStyledTransformableElement::isSupportedAttribute):
     111        * svg/SVGSymbolElement.cpp:
     112        (WebCore::SVGSymbolElement::isSupportedAttribute):
     113        * svg/SVGTRefElement.cpp:
     114        (WebCore::SVGTRefElement::isSupportedAttribute):
     115        * svg/SVGTextContentElement.cpp:
     116        (WebCore::SVGTextContentElement::isSupportedAttribute):
     117        * svg/SVGTextElement.cpp:
     118        (WebCore::SVGTextElement::isSupportedAttribute):
     119        * svg/SVGTextPathElement.cpp:
     120        (WebCore::SVGTextPathElement::isSupportedAttribute):
     121        * svg/SVGTextPositioningElement.cpp:
     122        (WebCore::SVGTextPositioningElement::isSupportedAttribute):
     123        * svg/SVGURIReference.cpp:
     124        (WebCore::SVGURIReference::addSupportedAttributes):
     125        * svg/SVGUseElement.cpp:
     126        (WebCore::SVGUseElement::isSupportedAttribute):
     127        * svg/SVGViewElement.cpp:
     128        (WebCore::SVGViewElement::isSupportedAttribute):
     129
    11302011-09-28  Kentaro Hara  <haraken@chromium.org>
    2131
  • trunk/Source/WebCore/svg/SVGAElement.cpp

    r95216 r96307  
    9595        supportedAttributes.add(SVGNames::targetAttr);
    9696    }
    97     return supportedAttributes.contains(attrName);
     97    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9898}
    9999
  • trunk/Source/WebCore/svg/SVGAnimateMotionElement.cpp

    r95216 r96307  
    9393    if (supportedAttributes.isEmpty())
    9494        supportedAttributes.add(SVGNames::pathAttr);
    95     return supportedAttributes.contains(attrName);
     95    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9696}
    9797
  • trunk/Source/WebCore/svg/SVGAnimateTransformElement.cpp

    r95216 r96307  
    9090    if (supportedAttributes.isEmpty())
    9191        supportedAttributes.add(SVGNames::typeAttr);
    92     return supportedAttributes.contains(attrName);
     92    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9393}
    9494
  • trunk/Source/WebCore/svg/SVGAnimationElement.cpp

    r95907 r96307  
    155155        supportedAttributes.add(SVGNames::keySplinesAttr);
    156156    }
    157     return supportedAttributes.contains(attrName);
     157    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    158158}
    159159     
  • trunk/Source/WebCore/svg/SVGCircleElement.cpp

    r92423 r96307  
    7777        supportedAttributes.add(SVGNames::rAttr);
    7878    }
    79     return supportedAttributes.contains(attrName);
     79    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8080}
    8181
  • trunk/Source/WebCore/svg/SVGClipPathElement.cpp

    r90680 r96307  
    6868        supportedAttributes.add(SVGNames::clipPathUnitsAttr);
    6969    }
    70     return supportedAttributes.contains(attrName);
     70    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7171}
    7272
  • trunk/Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp

    r90680 r96307  
    7272        supportedAttributes.add(SVGNames::offsetAttr);
    7373    }
    74     return supportedAttributes.contains(attrName);
     74    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7575}
    7676
  • trunk/Source/WebCore/svg/SVGCursorElement.cpp

    r92423 r96307  
    7676        supportedAttributes.add(SVGNames::yAttr);
    7777    }
    78     return supportedAttributes.contains(attrName);
     78    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7979}
    8080
  • trunk/Source/WebCore/svg/SVGElement.h

    r94659 r96307  
    131131};
    132132
     133struct SVGAttributeHashTranslator {
     134    static unsigned hash(QualifiedName key)
     135    {
     136        key.setPrefix(nullAtom);
     137        return DefaultHash<QualifiedName>::Hash::hash(key);
     138    }
     139    static bool equal(QualifiedName a, QualifiedName b) { return a.matches(b); }
     140};
     141
    133142}
    134143
  • trunk/Source/WebCore/svg/SVGEllipseElement.cpp

    r92423 r96307  
    7979        supportedAttributes.add(SVGNames::ryAttr);
    8080    }
    81     return supportedAttributes.contains(attrName);
     81    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8282}
    8383
  • trunk/Source/WebCore/svg/SVGExternalResourcesRequired.h

    r87010 r96307  
    2424#if ENABLE(SVG)
    2525#include "QualifiedName.h"
     26#include "SVGElement.h"
    2627#include <wtf/HashSet.h>
    2728
  • trunk/Source/WebCore/svg/SVGFEBlendElement.cpp

    r90680 r96307  
    6565        supportedAttributes.add(SVGNames::in2Attr);
    6666    }
    67     return supportedAttributes.contains(attrName);
     67    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6868}
    6969
  • trunk/Source/WebCore/svg/SVGFEColorMatrixElement.cpp

    r90680 r96307  
    6565        supportedAttributes.add(SVGNames::inAttr);
    6666    }
    67     return supportedAttributes.contains(attrName);
     67    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6868}
    6969
  • trunk/Source/WebCore/svg/SVGFEComponentTransferElement.cpp

    r90680 r96307  
    6060    if (supportedAttributes.isEmpty())
    6161        supportedAttributes.add(SVGNames::inAttr);
    62     return supportedAttributes.contains(attrName);
     62    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6363}
    6464
  • trunk/Source/WebCore/svg/SVGFECompositeElement.cpp

    r90680 r96307  
    7777        supportedAttributes.add(SVGNames::k4Attr);
    7878    }
    79     return supportedAttributes.contains(attrName);
     79    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8080}
    8181
  • trunk/Source/WebCore/svg/SVGFEConvolveMatrixElement.cpp

    r95901 r96307  
    117117        supportedAttributes.add(SVGNames::preserveAlphaAttr);
    118118    }
    119     return supportedAttributes.contains(attrName);
     119    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    120120}
    121121
  • trunk/Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp

    r90680 r96307  
    8888        supportedAttributes.add(SVGNames::lighting_colorAttr); // Even though it's a SVG-CSS property, we override its handling here.
    8989    }
    90     return supportedAttributes.contains(attrName);
     90    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9191}
    9292
  • trunk/Source/WebCore/svg/SVGFEDisplacementMapElement.cpp

    r90680 r96307  
    7171        supportedAttributes.add(SVGNames::scaleAttr);
    7272    }
    73     return supportedAttributes.contains(attrName);
     73    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7474}
    7575
  • trunk/Source/WebCore/svg/SVGFEDropShadowElement.cpp

    r95901 r96307  
    9393        supportedAttributes.add(SVGNames::stdDeviationAttr);
    9494    }
    95     return supportedAttributes.contains(attrName);
     95    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9696}
    9797
  • trunk/Source/WebCore/svg/SVGFEGaussianBlurElement.cpp

    r90680 r96307  
    8383        supportedAttributes.add(SVGNames::stdDeviationAttr);
    8484    }
    85     return supportedAttributes.contains(attrName);
     85    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8686}
    8787
  • trunk/Source/WebCore/svg/SVGFEImageElement.cpp

    r92047 r96307  
    9797        supportedAttributes.add(SVGNames::preserveAspectRatioAttr);
    9898    }
    99     return supportedAttributes.contains(attrName);
     99    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    100100}
    101101
  • trunk/Source/WebCore/svg/SVGFELightElement.cpp

    r90680 r96307  
    104104        supportedAttributes.add(SVGNames::limitingConeAngleAttr);
    105105    }
    106     return supportedAttributes.contains(attrName);
     106    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    107107}
    108108
  • trunk/Source/WebCore/svg/SVGFEMergeNodeElement.cpp

    r90680 r96307  
    5757    if (supportedAttributes.isEmpty())
    5858        supportedAttributes.add(SVGNames::inAttr);
    59     return supportedAttributes.contains(attrName);
     59    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6060}
    6161
  • trunk/Source/WebCore/svg/SVGFEMorphologyElement.cpp

    r95901 r96307  
    8686        supportedAttributes.add(SVGNames::radiusAttr);
    8787    }
    88     return supportedAttributes.contains(attrName);
     88    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8989}
    9090
  • trunk/Source/WebCore/svg/SVGFEOffsetElement.cpp

    r90680 r96307  
    6464        supportedAttributes.add(SVGNames::dyAttr);
    6565    }
    66     return supportedAttributes.contains(attrName);
     66    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6767}
    6868
  • trunk/Source/WebCore/svg/SVGFESpecularLightingElement.cpp

    r90680 r96307  
    9292        supportedAttributes.add(SVGNames::kernelUnitLengthAttr);
    9393    }
    94     return supportedAttributes.contains(attrName);
     94    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9595}
    9696
  • trunk/Source/WebCore/svg/SVGFETileElement.cpp

    r90680 r96307  
    5858    if (supportedAttributes.isEmpty())
    5959        supportedAttributes.add(SVGNames::inAttr);
    60     return supportedAttributes.contains(attrName);
     60    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6161}
    6262
  • trunk/Source/WebCore/svg/SVGFETurbulenceElement.cpp

    r90680 r96307  
    8686        supportedAttributes.add(SVGNames::typeAttr);
    8787    }
    88     return supportedAttributes.contains(attrName);
     88    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8989}
    9090
  • trunk/Source/WebCore/svg/SVGFilterElement.cpp

    r92423 r96307  
    118118        supportedAttributes.add(SVGNames::filterResAttr);
    119119    }
    120     return supportedAttributes.contains(attrName);
     120    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    121121}
    122122
  • trunk/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp

    r92423 r96307  
    7575        supportedAttributes.add(SVGNames::resultAttr);
    7676    }
    77     return supportedAttributes.contains(attrName);
     77    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7878}
    7979
  • trunk/Source/WebCore/svg/SVGForeignObjectElement.cpp

    r95040 r96307  
    8282        supportedAttributes.add(SVGNames::heightAttr);
    8383    }
    84     return supportedAttributes.contains(attrName);
     84    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8585}
    8686
  • trunk/Source/WebCore/svg/SVGGElement.cpp

    r90680 r96307  
    6161        SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes);
    6262    }
    63     return supportedAttributes.contains(attrName);
     63    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6464}
    6565
  • trunk/Source/WebCore/svg/SVGGradientElement.cpp

    r90680 r96307  
    7373        supportedAttributes.add(SVGNames::spreadMethodAttr);
    7474    }
    75     return supportedAttributes.contains(attrName);
     75    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7676}
    7777
  • trunk/Source/WebCore/svg/SVGImageElement.cpp

    r92423 r96307  
    8989        supportedAttributes.add(SVGNames::preserveAspectRatioAttr);
    9090    }
    91     return supportedAttributes.contains(attrName);
     91    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9292}
    9393
  • trunk/Source/WebCore/svg/SVGLineElement.cpp

    r92423 r96307  
    7979        supportedAttributes.add(SVGNames::y2Attr);
    8080    }
    81     return supportedAttributes.contains(attrName);
     81    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8282}
    8383
  • trunk/Source/WebCore/svg/SVGLinearGradientElement.cpp

    r92423 r96307  
    8181        supportedAttributes.add(SVGNames::y2Attr);
    8282    }
    83     return supportedAttributes.contains(attrName);
     83    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8484}
    8585
  • trunk/Source/WebCore/svg/SVGMPathElement.cpp

    r92047 r96307  
    5757        SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes);
    5858    }
    59     return supportedAttributes.contains(attrName);
     59    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6060}
    6161
  • trunk/Source/WebCore/svg/SVGMarkerElement.cpp

    r92423 r96307  
    123123        supportedAttributes.add(SVGNames::orientAttr);
    124124    }
    125     return supportedAttributes.contains(attrName);
     125    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    126126}
    127127
  • trunk/Source/WebCore/svg/SVGMaskElement.cpp

    r92423 r96307  
    9292        supportedAttributes.add(SVGNames::heightAttr);
    9393    }
    94     return supportedAttributes.contains(attrName);
     94    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9595}
    9696
  • trunk/Source/WebCore/svg/SVGPathElement.cpp

    r91748 r96307  
    213213        supportedAttributes.add(SVGNames::pathLengthAttr);
    214214    }
    215     return supportedAttributes.contains(attrName);
     215    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    216216}
    217217
  • trunk/Source/WebCore/svg/SVGPatternElement.cpp

    r92423 r96307  
    107107        supportedAttributes.add(SVGNames::heightAttr);
    108108    }
    109     return supportedAttributes.contains(attrName);
     109    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    110110}
    111111
  • trunk/Source/WebCore/svg/SVGPolyElement.cpp

    r91748 r96307  
    7575        supportedAttributes.add(SVGNames::pointsAttr);
    7676    }
    77     return supportedAttributes.contains(attrName);
     77    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7878}
    7979
  • trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp

    r92423 r96307  
    8585        supportedAttributes.add(SVGNames::rAttr);
    8686    }
    87     return supportedAttributes.contains(attrName);
     87    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8888}
    8989
  • trunk/Source/WebCore/svg/SVGRectElement.cpp

    r92423 r96307  
    8686        supportedAttributes.add(SVGNames::ryAttr);
    8787    }
    88     return supportedAttributes.contains(attrName);
     88    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8989}
    9090
  • trunk/Source/WebCore/svg/SVGScriptElement.cpp

    r91404 r96307  
    6767        supportedAttributes.add(HTMLNames::onerrorAttr);
    6868    }
    69     return supportedAttributes.contains(attrName);
     69    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7070}
    7171
  • trunk/Source/WebCore/svg/SVGStopElement.cpp

    r90680 r96307  
    6060    if (supportedAttributes.isEmpty())
    6161        supportedAttributes.add(SVGNames::offsetAttr);
    62     return supportedAttributes.contains(attrName);
     62    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6363}
    6464
  • trunk/Source/WebCore/svg/SVGStyleElement.cpp

    r93227 r96307  
    9393        supportedAttributes.add(SVGNames::titleAttr);
    9494    }
    95     return supportedAttributes.contains(attrName);
     95    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    9696}
    9797
  • trunk/Source/WebCore/svg/SVGStyledTransformableElement.cpp

    r94558 r96307  
    8282    if (supportedAttributes.isEmpty())
    8383        supportedAttributes.add(SVGNames::transformAttr);
    84     return supportedAttributes.contains(attrName);
     84    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    8585}
    8686
  • trunk/Source/WebCore/svg/SVGSymbolElement.cpp

    r90680 r96307  
    6262        SVGFitToViewBox::addSupportedAttributes(supportedAttributes);
    6363    }
    64     return supportedAttributes.contains(attrName);
     64    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6565}
    6666
  • trunk/Source/WebCore/svg/SVGTRefElement.cpp

    r95791 r96307  
    156156    if (supportedAttributes.isEmpty())
    157157        SVGURIReference::addSupportedAttributes(supportedAttributes);
    158     return supportedAttributes.contains(attrName);
     158    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    159159}
    160160
  • trunk/Source/WebCore/svg/SVGTextContentElement.cpp

    r92423 r96307  
    226226        supportedAttributes.add(SVGNames::textLengthAttr);
    227227    }
    228     return supportedAttributes.contains(attrName);
     228    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    229229}
    230230
  • trunk/Source/WebCore/svg/SVGTextElement.cpp

    r94558 r96307  
    6161    if (supportedAttributes.isEmpty())
    6262        supportedAttributes.add(SVGNames::transformAttr);
    63     return supportedAttributes.contains(attrName);
     63    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6464}
    6565
  • trunk/Source/WebCore/svg/SVGTextPathElement.cpp

    r92423 r96307  
    7070        supportedAttributes.add(SVGNames::spacingAttr);
    7171    }
    72     return supportedAttributes.contains(attrName);
     72    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    7373}
    7474
  • trunk/Source/WebCore/svg/SVGTextPositioningElement.cpp

    r90680 r96307  
    6666        supportedAttributes.add(SVGNames::rotateAttr);
    6767    }
    68     return supportedAttributes.contains(attrName);
     68    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6969}
    7070
  • trunk/Source/WebCore/svg/SVGURIReference.cpp

    r92047 r96307  
    7474void SVGURIReference::addSupportedAttributes(HashSet<QualifiedName>& supportedAttributes)
    7575{
    76     DEFINE_STATIC_LOCAL(AtomicString, xlinkPrefix, ("xlink"));
    77     QualifiedName hrefWithPrefix = XLinkNames::hrefAttr;
    78     hrefWithPrefix.setPrefix(xlinkPrefix);
    79     supportedAttributes.add(hrefWithPrefix);
    8076    supportedAttributes.add(XLinkNames::hrefAttr);
    8177}
  • trunk/Source/WebCore/svg/SVGUseElement.cpp

    r95372 r96307  
    127127        supportedAttributes.add(SVGNames::heightAttr);
    128128    }
    129     return supportedAttributes.contains(attrName);
     129    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    130130}
    131131
  • trunk/Source/WebCore/svg/SVGViewElement.cpp

    r90680 r96307  
    6666        supportedAttributes.add(SVGNames::viewTargetAttr);
    6767    }
    68     return supportedAttributes.contains(attrName);
     68    return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslator>(attrName);
    6969}
    7070
Note: See TracChangeset for help on using the changeset viewer.