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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); } | 124 HTMLTreeBuilder* treeBuilder() const { return m_treeBuilder.get(); } |
125 | 125 |
126 void forcePlaintextForTextDocument(); | 126 void forcePlaintextForTextDocument(); |
127 | 127 |
128 private: | 128 private: |
129 static HTMLDocumentParser* create(DocumentFragment* fragment, Element* conte
xtElement, ParserContentPolicy parserContentPolicy) | 129 static HTMLDocumentParser* create(DocumentFragment* fragment, Element* conte
xtElement, ParserContentPolicy parserContentPolicy) |
130 { | 130 { |
131 return new HTMLDocumentParser(fragment, contextElement, parserContentPol
icy); | 131 return new HTMLDocumentParser(fragment, contextElement, parserContentPol
icy); |
132 } | 132 } |
| 133 HTMLDocumentParser(Document&, ParserContentPolicy, ParserSynchronizationPoli
cy); |
133 | 134 |
134 // DocumentParser | 135 // DocumentParser |
135 void detach() final; | 136 void detach() final; |
136 bool hasInsertionPoint() final; | 137 bool hasInsertionPoint() final; |
137 void prepareToStopParsing() final; | 138 void prepareToStopParsing() final; |
138 void stopParsing() final; | 139 void stopParsing() final; |
139 bool isWaitingForScripts() const final; | 140 bool isWaitingForScripts() const final; |
140 bool isExecutingScript() const final; | 141 bool isExecutingScript() const final; |
141 void executeScriptsWaitingForResources() final; | 142 void executeScriptsWaitingForResources() final; |
142 void documentElementAvailable() override; | 143 void documentElementAvailable() override; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 bool m_tasksWereSuspended; | 230 bool m_tasksWereSuspended; |
230 unsigned m_pumpSessionNestingLevel; | 231 unsigned m_pumpSessionNestingLevel; |
231 unsigned m_pumpSpeculationsSessionNestingLevel; | 232 unsigned m_pumpSpeculationsSessionNestingLevel; |
232 bool m_isParsingAtLineNumber; | 233 bool m_isParsingAtLineNumber; |
233 bool m_triedLoadingLinkHeaders; | 234 bool m_triedLoadingLinkHeaders; |
234 }; | 235 }; |
235 | 236 |
236 } // namespace blink | 237 } // namespace blink |
237 | 238 |
238 #endif | 239 #endif |
OLD | NEW |