Changeset 139938 in webkit


Ignore:
Timestamp:
Jan 16, 2013 5:18:26 PM (11 years ago)
Author:
abarth@webkit.org
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):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139935 r139938  
     12013-01-16  Adam Barth  <abarth@webkit.org>
     2
     3        Teach HTMLParserOptions about Settings::threadedHTMLParser
     4        https://bugs.webkit.org/show_bug.cgi?id=107068
     5
     6        Reviewed by Tony Gentilcore.
     7
     8        We use this option to enable the threaded HTML parser at runtime.
     9
     10        * html/parser/HTMLParserOptions.cpp:
     11        (WebCore::HTMLParserOptions::HTMLParserOptions):
     12        * html/parser/HTMLParserOptions.h:
     13        (HTMLParserOptions):
     14
    1152013-01-16  Brady Eidson  <beidson@apple.com>
    216
  • trunk/Source/WebCore/html/parser/HTMLParserOptions.cpp

    r139020 r139938  
    4141    Settings* settings = document ? document->settings() : 0;
    4242    usePreHTML5ParserQuirks = settings && settings->usePreHTML5ParserQuirks();
     43#if ENABLE(THREADED_HTML_PARSER)
     44    useThreading = settings && settings->threadedHTMLParser();
     45#endif
    4346    maximumDOMTreeDepth = settings ? settings->maximumHTMLParserDOMTreeDepth() : Settings::defaultMaximumHTMLParserDOMTreeDepth;
    4447}
  • trunk/Source/WebCore/html/parser/HTMLParserOptions.h

    r139020 r139938  
    3636    bool pluginsEnabled;
    3737    bool usePreHTML5ParserQuirks;
     38#if ENABLE(THREADED_HTML_PARSER)
     39    bool useThreading;
     40#endif
    3841    unsigned maximumDOMTreeDepth;
    3942
Note: See TracChangeset for help on using the changeset viewer.