Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h

Issue 2041013004: HTMLDocumentParser: Dedupe member inits by moving them into in-class init (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no scriptrunner in fragment parser Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698