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 21 matching lines...) Expand all Loading... |
32 #include "core/frame/LocalFrame.h" | 32 #include "core/frame/LocalFrame.h" |
33 #include "core/html/HTMLDocument.h" | 33 #include "core/html/HTMLDocument.h" |
34 #include "core/html/parser/AtomicHTMLToken.h" | 34 #include "core/html/parser/AtomicHTMLToken.h" |
35 #include "core/html/parser/BackgroundHTMLParser.h" | 35 #include "core/html/parser/BackgroundHTMLParser.h" |
36 #include "core/html/parser/HTMLParserScheduler.h" | 36 #include "core/html/parser/HTMLParserScheduler.h" |
37 #include "core/html/parser/HTMLParserThread.h" | 37 #include "core/html/parser/HTMLParserThread.h" |
38 #include "core/html/parser/HTMLScriptRunner.h" | 38 #include "core/html/parser/HTMLScriptRunner.h" |
39 #include "core/html/parser/HTMLTreeBuilder.h" | 39 #include "core/html/parser/HTMLTreeBuilder.h" |
40 #include "core/inspector/InspectorInstrumentation.h" | 40 #include "core/inspector/InspectorInstrumentation.h" |
41 #include "platform/SharedBuffer.h" | 41 #include "platform/SharedBuffer.h" |
42 #include "platform/TraceEvent.h" | |
43 #include "wtf/Functional.h" | 42 #include "wtf/Functional.h" |
| 43 #include "wtf/TraceEvent.h" |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 using namespace HTMLNames; | 47 using namespace HTMLNames; |
48 | 48 |
49 // This is a direct transcription of step 4 from: | 49 // This is a direct transcription of step 4 from: |
50 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case | 50 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case |
51 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem
ent, bool reportErrors, const HTMLParserOptions& options) | 51 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem
ent, bool reportErrors, const HTMLParserOptions& options) |
52 { | 52 { |
53 if (!contextElement) | 53 if (!contextElement) |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) | 998 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) |
999 { | 999 { |
1000 ASSERT(decoder); | 1000 ASSERT(decoder); |
1001 DecodedDataDocumentParser::setDecoder(decoder); | 1001 DecodedDataDocumentParser::setDecoder(decoder); |
1002 | 1002 |
1003 if (m_haveBackgroundParser) | 1003 if (m_haveBackgroundParser) |
1004 HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::setDeco
der, m_backgroundParser, takeDecoder())); | 1004 HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::setDeco
der, m_backgroundParser, takeDecoder())); |
1005 } | 1005 } |
1006 | 1006 |
1007 } | 1007 } |
OLD | NEW |