Title: [118892] trunk/Source/WebCore
Revision
118892
Author
[email protected]
Date
2012-05-29 21:37:21 -0700 (Tue, 29 May 2012)

Log Message

Remove a dummy style sheet from CSSParser::parseFlowThread()
https://bugs.webkit.org/show_bug.cgi?id=87715

Reviewed by Darin Adler.

r118736 changed CSSGrammar.y so that it works fine with no style sheet.
r118736 removed a dummy style sheet from CSSParser::parserSelector().
Now we can safely remove a dummy style sheet from parserFlowThread().

Tests: fast/regions. No change in test results.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseFlowThread):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (118891 => 118892)


--- trunk/Source/WebCore/ChangeLog	2012-05-30 04:34:33 UTC (rev 118891)
+++ trunk/Source/WebCore/ChangeLog	2012-05-30 04:37:21 UTC (rev 118892)
@@ -1,3 +1,19 @@
+2012-05-29  Kentaro Hara  <[email protected]>
+
+        Remove a dummy style sheet from CSSParser::parseFlowThread()
+        https://bugs.webkit.org/show_bug.cgi?id=87715
+
+        Reviewed by Darin Adler.
+
+        r118736 changed CSSGrammar.y so that it works fine with no style sheet.
+        r118736 removed a dummy style sheet from CSSParser::parserSelector().
+        Now we can safely remove a dummy style sheet from parserFlowThread().
+
+        Tests: fast/regions. No change in test results.
+
+        * css/CSSParser.cpp:
+        (WebCore::CSSParser::parseFlowThread):
+
 2012-05-29  Yoshifumi Inoue  <[email protected]>
 
         REGRESSION(r111497): The "option" element doesn't match CSS pseudo class :enabled

Modified: trunk/Source/WebCore/css/CSSParser.cpp (118891 => 118892)


--- trunk/Source/WebCore/css/CSSParser.cpp	2012-05-30 04:34:33 UTC (rev 118891)
+++ trunk/Source/WebCore/css/CSSParser.cpp	2012-05-30 04:37:21 UTC (rev 118892)
@@ -7364,9 +7364,6 @@
 #if ENABLE(CSS_REGIONS)
 bool CSSParser::parseFlowThread(const String& flowName)
 {
-    RefPtr<StyleSheetContents> dummyStyleSheet = StyleSheetContents::create();
-    setStyleSheet(dummyStyleSheet.get());
-
     setupParser("@-webkit-decls{-webkit-flow-into:", flowName, "}");
     cssyyparse(this);
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to