OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/html/parser/HTMLDocumentParser.h" | 27 #include "core/html/parser/HTMLDocumentParser.h" |
28 | 28 |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "core/dom/DocumentFragment.h" | 30 #include "core/dom/DocumentFragment.h" |
31 #include "core/dom/Element.h" | 31 #include "core/dom/Element.h" |
32 #include "core/html/HTMLDocument.h" | |
33 #include "core/html/parser/AtomicHTMLToken.h" | 32 #include "core/html/parser/AtomicHTMLToken.h" |
34 #include "core/html/parser/BackgroundHTMLParser.h" | 33 #include "core/html/parser/BackgroundHTMLParser.h" |
35 #include "core/html/parser/CompactHTMLToken.h" | 34 #include "core/html/parser/CompactHTMLToken.h" |
36 #include "core/html/parser/HTMLIdentifier.h" | 35 #include "core/html/parser/HTMLIdentifier.h" |
37 #include "core/html/parser/HTMLParserScheduler.h" | 36 #include "core/html/parser/HTMLParserScheduler.h" |
38 #include "core/html/parser/HTMLParserThread.h" | 37 #include "core/html/parser/HTMLParserThread.h" |
39 #include "core/html/parser/HTMLPreloadScanner.h" | 38 #include "core/html/parser/HTMLPreloadScanner.h" |
40 #include "core/html/parser/HTMLScriptRunner.h" | 39 #include "core/html/parser/HTMLScriptRunner.h" |
41 #include "core/html/parser/HTMLTokenizer.h" | 40 #include "core/html/parser/HTMLTokenizer.h" |
42 #include "core/html/parser/HTMLTreeBuilder.h" | 41 #include "core/html/parser/HTMLTreeBuilder.h" |
43 #include "core/inspector/InspectorInstrumentation.h" | 42 #include "core/inspector/InspectorInstrumentation.h" |
44 #include "core/page/Frame.h" | 43 #include "core/page/Frame.h" |
45 #include <wtf/Functional.h> | 44 #include "wtf/Functional.h" |
46 | 45 |
47 namespace WebCore { | 46 namespace WebCore { |
48 | 47 |
49 using namespace HTMLNames; | 48 using namespace HTMLNames; |
50 | 49 |
51 // This is a direct transcription of step 4 from: | 50 // This is a direct transcription of step 4 from: |
52 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case | 51 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case |
53 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem
ent, bool reportErrors, const HTMLParserOptions& options) | 52 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem
ent, bool reportErrors, const HTMLParserOptions& options) |
54 { | 53 { |
55 if (!contextElement) | 54 if (!contextElement) |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 m_parserScheduler->suspend(); | 931 m_parserScheduler->suspend(); |
933 } | 932 } |
934 | 933 |
935 void HTMLDocumentParser::resumeScheduledTasks() | 934 void HTMLDocumentParser::resumeScheduledTasks() |
936 { | 935 { |
937 if (m_parserScheduler) | 936 if (m_parserScheduler) |
938 m_parserScheduler->resume(); | 937 m_parserScheduler->resume(); |
939 } | 938 } |
940 | 939 |
941 } | 940 } |
OLD | NEW |