2007-07-16 Rob Buis <buis@kde.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jul 2007 08:38:41 +0000 (08:38 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jul 2007 08:38:41 +0000 (08:38 +0000)
commit9b632a73d566ce55dab1b0610581ac69f6511dfb
tree256194bf4891071e578bc4b4062f2c91d95ecb34
parent33507e27d2639e8b8be7b9ed7a6366069a399a59
2007-07-16  Rob Buis  <buis@kde.org>

        Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=14462
        non empty <style> element doesn't work

        Return an empty sheet for empty <style> elements
        instead of a null sheet. Clean up StyleElement a bit.

        * dom/StyleElement.cpp:
        (WebCore::StyleElement::StyleElement):
        (WebCore::StyleElement::sheet):
        (WebCore::StyleElement::childrenChanged):
        (WebCore::StyleElement::createSheet):
        * dom/StyleElement.h:
        (WebCore::StyleElement::setLoading):
        * html/HTMLStyleElement.cpp:
        (WebCore::HTMLStyleElement::HTMLStyleElement):
        (WebCore::HTMLStyleElement::sheet):
        * html/HTMLStyleElement.h:
        (WebCore::HTMLStyleElement::setLoading):
        * ksvg2/svg/SVGStyleElement.cpp:
        (WebCore::SVGStyleElement::sheet):
        (WebCore::SVGStyleElement::sheetLoaded):
        * ksvg2/svg/SVGStyleElement.h:

2007-07-16  Rob Buis  <buis@kde.org>

        Reviewed by Maciej.

        Testcase for:
        http://bugs.webkit.org/show_bug.cgi?id=14462
        non empty <style> element doesn't work

        * fast/css/empty-script-expected.txt: Added.
        * fast/css/empty-script.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/empty-script-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/empty-script.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/StyleElement.cpp
WebCore/dom/StyleElement.h
WebCore/html/HTMLStyleElement.cpp
WebCore/html/HTMLStyleElement.h
WebCore/ksvg2/svg/SVGStyleElement.cpp
WebCore/ksvg2/svg/SVGStyleElement.h