Skip to content
  • simon.fraser@apple.com's avatar
    2011-01-08 Simon Fraser <simon.fraser@apple.com> · 5b0a15fe
    simon.fraser@apple.com authored
            Reviewed by Alexey Proskuryakov.
    
            HTMLStyleElement.disabled doesn't work (affects jQuery)
            https://bugs.webkit.org/show_bug.cgi?id=25287
    
            Fix the disabled property of a HTMLStyleElement to reflect,
            and set the disabled state of its style sheet, as required
            by DOM1 etc.
    
            Based on initial patch by Tarun Nainani.
    
            Test: fast/html/disable-style-element.html
    
            * dom/StyleElement.h:
            (WebCore::StyleElement::sheet): Make const.
    
            * html/HTMLStyleElement.h:
            * html/HTMLStyleElement.idl:
            * html/HTMLStyleElement.cpp:
            (WebCore::HTMLStyleElement::disabled):
            (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
            call through to the sheet (if any).
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5b0a15fe