Title: [139938] trunk/Source/WebCore
Revision
139938
Author
[email protected]
Date
2013-01-16 17:18:26 -0800 (Wed, 16 Jan 2013)

Log Message

Teach HTMLParserOptions about Settings::threadedHTMLParser
https://bugs.webkit.org/show_bug.cgi?id=107068

Reviewed by Tony Gentilcore.

We use this option to enable the threaded HTML parser at runtime.

* html/parser/HTMLParserOptions.cpp:
(WebCore::HTMLParserOptions::HTMLParserOptions):
* html/parser/HTMLParserOptions.h:
(HTMLParserOptions):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (139937 => 139938)


--- trunk/Source/WebCore/ChangeLog	2013-01-17 01:11:15 UTC (rev 139937)
+++ trunk/Source/WebCore/ChangeLog	2013-01-17 01:18:26 UTC (rev 139938)
@@ -1,3 +1,17 @@
+2013-01-16  Adam Barth  <[email protected]>
+
+        Teach HTMLParserOptions about Settings::threadedHTMLParser
+        https://bugs.webkit.org/show_bug.cgi?id=107068
+
+        Reviewed by Tony Gentilcore.
+
+        We use this option to enable the threaded HTML parser at runtime.
+
+        * html/parser/HTMLParserOptions.cpp:
+        (WebCore::HTMLParserOptions::HTMLParserOptions):
+        * html/parser/HTMLParserOptions.h:
+        (HTMLParserOptions):
+
 2013-01-16  Brady Eidson  <[email protected]>
 
         Synchronous XMLHTTPRequests need to go to the NetworkProcess.

Modified: trunk/Source/WebCore/html/parser/HTMLParserOptions.cpp (139937 => 139938)


--- trunk/Source/WebCore/html/parser/HTMLParserOptions.cpp	2013-01-17 01:11:15 UTC (rev 139937)
+++ trunk/Source/WebCore/html/parser/HTMLParserOptions.cpp	2013-01-17 01:18:26 UTC (rev 139938)
@@ -40,6 +40,9 @@
 
     Settings* settings = document ? document->settings() : 0;
     usePreHTML5ParserQuirks = settings && settings->usePreHTML5ParserQuirks();
+#if ENABLE(THREADED_HTML_PARSER)
+    useThreading = settings && settings->threadedHTMLParser();
+#endif
     maximumDOMTreeDepth = settings ? settings->maximumHTMLParserDOMTreeDepth() : Settings::defaultMaximumHTMLParserDOMTreeDepth;
 }
 

Modified: trunk/Source/WebCore/html/parser/HTMLParserOptions.h (139937 => 139938)


--- trunk/Source/WebCore/html/parser/HTMLParserOptions.h	2013-01-17 01:11:15 UTC (rev 139937)
+++ trunk/Source/WebCore/html/parser/HTMLParserOptions.h	2013-01-17 01:18:26 UTC (rev 139938)
@@ -35,6 +35,9 @@
     bool scriptEnabled;
     bool pluginsEnabled;
     bool usePreHTML5ParserQuirks;
+#if ENABLE(THREADED_HTML_PARSER)
+    bool useThreading;
+#endif
     unsigned maximumDOMTreeDepth;
 
     explicit HTMLParserOptions(Document*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to