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 22 matching lines...) Expand all Loading... |
33 #include "core/html/parser/AtomicHTMLToken.h" | 33 #include "core/html/parser/AtomicHTMLToken.h" |
34 #include "core/html/parser/BackgroundHTMLParser.h" | 34 #include "core/html/parser/BackgroundHTMLParser.h" |
35 #include "core/html/parser/CompactHTMLToken.h" | 35 #include "core/html/parser/CompactHTMLToken.h" |
36 #include "core/html/parser/HTMLIdentifier.h" | 36 #include "core/html/parser/HTMLIdentifier.h" |
37 #include "core/html/parser/HTMLParserScheduler.h" | 37 #include "core/html/parser/HTMLParserScheduler.h" |
38 #include "core/html/parser/HTMLParserThread.h" | 38 #include "core/html/parser/HTMLParserThread.h" |
39 #include "core/html/parser/HTMLPreloadScanner.h" | 39 #include "core/html/parser/HTMLPreloadScanner.h" |
40 #include "core/html/parser/HTMLScriptRunner.h" | 40 #include "core/html/parser/HTMLScriptRunner.h" |
41 #include "core/html/parser/HTMLTokenizer.h" | 41 #include "core/html/parser/HTMLTokenizer.h" |
42 #include "core/html/parser/HTMLTreeBuilder.h" | 42 #include "core/html/parser/HTMLTreeBuilder.h" |
43 #include "core/html/parser/NestingLevelIncrementer.h" | |
44 #include "core/inspector/InspectorInstrumentation.h" | 43 #include "core/inspector/InspectorInstrumentation.h" |
45 #include "core/loader/DocumentLoader.h" | |
46 #include "core/page/ContentSecurityPolicy.h" | |
47 #include "core/page/Frame.h" | 44 #include "core/page/Frame.h" |
48 #include "core/page/Settings.h" | |
49 #include <wtf/Functional.h> | 45 #include <wtf/Functional.h> |
50 | 46 |
51 namespace WebCore { | 47 namespace WebCore { |
52 | 48 |
53 using namespace HTMLNames; | 49 using namespace HTMLNames; |
54 | 50 |
55 // This is a direct transcription of step 4 from: | 51 // This is a direct transcription of step 4 from: |
56 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case | 52 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case |
57 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem
ent, bool reportErrors, const HTMLParserOptions& options) | 53 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem
ent, bool reportErrors, const HTMLParserOptions& options) |
58 { | 54 { |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 m_parserScheduler->suspend(); | 932 m_parserScheduler->suspend(); |
937 } | 933 } |
938 | 934 |
939 void HTMLDocumentParser::resumeScheduledTasks() | 935 void HTMLDocumentParser::resumeScheduledTasks() |
940 { | 936 { |
941 if (m_parserScheduler) | 937 if (m_parserScheduler) |
942 m_parserScheduler->resume(); | 938 m_parserScheduler->resume(); |
943 } | 939 } |
944 | 940 |
945 } | 941 } |
OLD | NEW |