Skip to content
  • ch.dumez@sisa.samsung.com's avatar
    Introduce a SVGUnknownElement class for unknown SVG elements · eebecacc
    ch.dumez@sisa.samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=120155
    
    Reviewed by Andreas Kling.
    
    Introduce a SVGUnknownElement class and have it override rendererIsNeeded() to return false.
    We now use SVGUnknownElement type (instead of SVGElement) for unknown SVG elements:
    - Unknown Elements in SVG namespace
    - Registered custom tag elements in SVG namespace:
      http://www.w3.org/TR/2013/WD-custom-elements-20130514/#registering-custom-elements
    
    As a consequence, SVGElement::rendererIsNeeded() is not longer required to return false and
    it will be able to behave as SVGStyledElement::rendererIsNeeded() once we merge
    SVGStyledElement into SVGElement.
    
    This is a pre-requirement to merging SVGStyledElement into SVGElement.
    
    No new tests, no behavior change.
    
    * GNUmakefile.list.am:
    * Target.pri:
    * WebCore.vcxproj/WebCore.vcxproj:
    * WebCore.vcxproj/WebCore.vcxproj.filters:
    * dom/CustomElementConstructor.cpp:
    (WebCore::CustomElementConstructor::createElementInternal):
    * dom/make_names.pl:
    (defaultParametersHash):
    (printJSElementIncludes):
    (printWrapperFunctions):
    (printWrapperFactoryCppFile):
    * svg/SVGElement.cpp:
    * svg/SVGElement.h:
    * svg/SVGUnknownElement.h: Added.
    (WebCore::SVGUnknownElement::create):
    (WebCore::SVGUnknownElement::SVGUnknownElement):
    * svg/svgtags.in:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    eebecacc