Skip to content
  • commit-queue@webkit.org's avatar
    Support 'disabled' attribute on SVGStyleElement · 268cc3d2
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=52130
    
    Source/WebCore:
    
    Adding disabled property to SVGStyleElement, which
    mirrors the functionality added to HTMLStyleElement
    for DOM1. The disabled property reflects and sets
    the disabled state of its style sheet.
    
    Based off of patch for bug 25287
    
    Patch by Bear Travis <betravis@adobe.com> on 2012-02-02
    Reviewed by Dirk Schulze.
    
    Test: svg/dom/SVGStyleElement/disable-svg-style-element.html
    
    * svg/SVGStyleElement.cpp:
    (WebCore::SVGStyleElement::disabled):
    (WebCore):
    (WebCore::SVGStyleElement::setDisabled):
    * svg/SVGStyleElement.h:
    (SVGStyleElement):
    * svg/SVGStyleElement.idl:
    
    LayoutTests:
    
    Test the disabled property of an svg style element.
    Based off of the patch for bug 25287.
    
    Patch by Bear Travis <betravis@adobe.com> on 2012-02-02
    Reviewed by Dirk Schulze.
    
    * svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt: Added.
    * svg/dom/SVGStyleElement/disable-svg-style-element.html: Added.
    * svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js: Added.
    (createStyle):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    268cc3d2