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