WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Dec 2007 23:45:40 +0000 (23:45 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Dec 2007 23:45:40 +0000 (23:45 +0000)
commit811316d520f1284cb247383ffff4f28e5653d824
treeb57494f2f28773ef19c0a413ddb2055458d59551
parent7fe0b2fd13d1f6af3ab4834bd90bb24a4dd812e8
WebCore:

        Reviewed by Adele Peterson.

        - fix two bugs in parsing of stylesheets in <style> elements created by
          the parser:
          1. each such stylesheet is parsed twice, once when the text node is
             added and again when the </style> tag is reached
          2. re-inserting such a <style> element into the document fails to
             re-parse and apply its stylesheet.

        Test for bug #2: fast/dom/HTMLStyleElement/insert-parser-generated.html

        * html/HTMLStyleElement.cpp:
        (WebCore::HTMLStyleElement::finishedParsing):
        * svg/SVGStyleElement.cpp:
        (WebCore::SVGStyleElement::finishedParsing):

LayoutTests:

        Reviewed by Adele Peterson.

        - test that re-inserting a parser-generated <style> element applies its
          sylesheet.

        * fast/dom/HTMLStyleElement: Added.
        * fast/dom/HTMLStyleElement/insert-parser-generated.html: Added.
        * platform/mac/fast/dom/HTMLStyleElement: Added.
        * platform/mac/fast/dom/HTMLStyleElement/insert-parser-generated-expected.checksum: Added.
        * platform/mac/fast/dom/HTMLStyleElement/insert-parser-generated-expected.png: Added.
        * platform/mac/fast/dom/HTMLStyleElement/insert-parser-generated-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/HTMLStyleElement/insert-parser-generated.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/dom/HTMLStyleElement/insert-parser-generated-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/dom/HTMLStyleElement/insert-parser-generated-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/dom/HTMLStyleElement/insert-parser-generated-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLStyleElement.cpp
WebCore/svg/SVGStyleElement.cpp