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

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

Issue 1772853002: Block the HTML parser on external stylesheets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return adoptRefWillBeNoop(new HTMLDocumentParser(fragment, contextElemen t, parserContentPolicy)); 130 return adoptRefWillBeNoop(new HTMLDocumentParser(fragment, contextElemen t, parserContentPolicy));
131 } 131 }
132 132
133 // DocumentParser 133 // DocumentParser
134 void detach() final; 134 void detach() final;
135 bool hasInsertionPoint() final; 135 bool hasInsertionPoint() final;
136 bool processingData() const final; 136 bool processingData() const final;
137 void prepareToStopParsing() final; 137 void prepareToStopParsing() final;
138 void stopParsing() final; 138 void stopParsing() final;
139 bool isWaitingForScripts() const final; 139 bool isWaitingForScripts() const final;
140 bool isWaitingForStyles() const;
140 bool isExecutingScript() const final; 141 bool isExecutingScript() const final;
141 void executeScriptsWaitingForResources() final; 142 void executeScriptsWaitingForResources() final;
142 143
143 // HTMLScriptRunnerHost 144 // HTMLScriptRunnerHost
144 void notifyScriptLoaded(Resource*) final; 145 void notifyScriptLoaded(Resource*) final;
145 HTMLInputStream& inputStream() final { return m_input; } 146 HTMLInputStream& inputStream() final { return m_input; }
146 bool hasPreloadScanner() const final { return m_preloadScanner.get() && !sho uldUseThreading(); } 147 bool hasPreloadScanner() const final { return m_preloadScanner.get() && !sho uldUseThreading(); }
147 void appendCurrentInputStreamToPreloadScannerAndScan() final; 148 void appendCurrentInputStreamToPreloadScannerAndScan() final;
148 149
149 void startBackgroundParser(); 150 void startBackgroundParser();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool m_haveBackgroundParser; 210 bool m_haveBackgroundParser;
210 bool m_tasksWereSuspended; 211 bool m_tasksWereSuspended;
211 unsigned m_pumpSessionNestingLevel; 212 unsigned m_pumpSessionNestingLevel;
212 unsigned m_pumpSpeculationsSessionNestingLevel; 213 unsigned m_pumpSpeculationsSessionNestingLevel;
213 bool m_isParsingAtLineNumber; 214 bool m_isParsingAtLineNumber;
214 }; 215 };
215 216
216 } // namespace blink 217 } // namespace blink
217 218
218 #endif 219 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698