Support 'disabled' attribute on SVGStyleElement
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2012 04:51:18 +0000 (04:51 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Feb 2012 04:51:18 +0000 (04:51 +0000)
commitc9a1c3f2d2a33ae1d572ddf64e7d28e0d891d153
tree8f9289448193c4263b9efb9e362143ee2c2bd030
parentc28e39895536f8566bd57256ebc7f77effb6aad8
Support 'disabled' attribute on SVGStyleElement
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: https://svn.webkit.org/repository/webkit/trunk@106623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt [new file with mode: 0644]
LayoutTests/svg/dom/SVGStyleElement/disable-svg-style-element.html [new file with mode: 0644]
LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGStyleElement.cpp
Source/WebCore/svg/SVGStyleElement.h
Source/WebCore/svg/SVGStyleElement.idl