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

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

Issue 2200613002: The HTML parser synchronously creates custom elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eliminate redundant TODOs. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
index e83f3bbd6411bb80acc842efc99330e4db6cc7de..84a12b1b2b83237923cff750cd9b0edfbdbaec63 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.h
@@ -35,6 +35,7 @@
#include "core/html/parser/CompactHTMLToken.h"
#include "core/html/parser/HTMLInputStream.h"
#include "core/html/parser/HTMLParserOptions.h"
+#include "core/html/parser/HTMLParserReentryPermit.h"
#include "core/html/parser/HTMLPreloadScanner.h"
#include "core/html/parser/HTMLScriptRunnerHost.h"
#include "core/html/parser/HTMLSourceTracker.h"
@@ -47,6 +48,7 @@
#include "core/html/parser/XSSAuditorDelegate.h"
#include "platform/text/SegmentedString.h"
#include "wtf/Deque.h"
+#include "wtf/RefPtr.h"
#include "wtf/WeakPtr.h"
#include "wtf/text/TextPosition.h"
#include <memory>
@@ -95,6 +97,8 @@ public:
void suspendScheduledTasks() final;
void resumeScheduledTasks() final;
+ HTMLParserReentryPermit* reentryPermit() { return m_reentryPermit.get(); }
+
struct TokenizedChunk {
USING_FAST_MALLOC(TokenizedChunk);
public:
@@ -204,6 +208,7 @@ private:
HTMLParserOptions m_options;
HTMLInputStream m_input;
+ RefPtr<HTMLParserReentryPermit> m_reentryPermit;
std::unique_ptr<HTMLToken> m_token;
std::unique_ptr<HTMLTokenizer> m_tokenizer;

Powered by Google App Engine
This is Rietveld 408576698