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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.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/HTMLConstructionSite.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h
index 3d66162365083b93aed2797769a1bb8b6aa8e4de..1d175f366cdc1f911d0488d9816091fe2f544e00 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h
@@ -31,9 +31,8 @@
#include "core/dom/ParserContentPolicy.h"
#include "core/html/parser/HTMLElementStack.h"
#include "core/html/parser/HTMLFormattingElementList.h"
+#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/StringBuilder.h"
@@ -101,15 +100,17 @@ enum FlushMode {
};
class AtomicHTMLToken;
+class CustomElementDefinition;
class Document;
class Element;
class HTMLFormElement;
+class HTMLParserReentryPermit;
class HTMLConstructionSite final {
WTF_MAKE_NONCOPYABLE(HTMLConstructionSite);
DISALLOW_NEW();
public:
- HTMLConstructionSite(Document&, ParserContentPolicy);
+ HTMLConstructionSite(HTMLParserReentryPermit*, Document&, ParserContentPolicy);
~HTMLConstructionSite();
DECLARE_TRACE();
@@ -243,6 +244,9 @@ private:
void executeTask(HTMLConstructionSiteTask&);
void queueTask(const HTMLConstructionSiteTask&);
+ CustomElementDefinition* lookUpCustomElementDefinition(Document&, AtomicHTMLToken*);
+
+ HTMLParserReentryPermit* m_reentryPermit;
Member<Document> m_document;
// This is the root ContainerNode to which the parser attaches all newly

Powered by Google App Engine
This is Rietveld 408576698