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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2838123002: Count element name validity per DOM versus HTML parsing. (Closed)
Patch Set: Do not need the attribute counting. Created 3 years, 8 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/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 14066c9866d81311f5a15e7d3c6af0f380dc92a9..bacf0dd2ee32b1a4ee7d6923585af839ac20bafa 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -317,8 +317,9 @@ class CORE_EXPORT Document : public ContainerNode,
Location* location() const;
- Element* createElement(const AtomicString& name,
- ExceptionState& = ASSERT_NO_EXCEPTION);
+ Element* createElement(const LocalDOMWindow*,
+ const AtomicString& name,
+ ExceptionState&);
DocumentFragment* createDocumentFragment();
Text* createTextNode(const String& data);
Comment* createComment(const String& data);
@@ -332,7 +333,8 @@ class CORE_EXPORT Document : public ContainerNode,
ExceptionState&,
bool should_ignore_namespace_checks = false);
Node* importNode(Node* imported_node, bool deep, ExceptionState&);
- Element* createElementNS(const AtomicString& namespace_uri,
+ Element* createElementNS(const LocalDOMWindow*,
+ const AtomicString& namespace_uri,
const AtomicString& qualified_name,
ExceptionState&);
Element* createElement(const QualifiedName&, CreateElementFlags);
@@ -1139,10 +1141,17 @@ class CORE_EXPORT Document : public ContainerNode,
TextAutosizer* GetTextAutosizer();
- Element* createElement(const AtomicString& local_name,
+ Element* createElement(
+ const AtomicString& local_name,
+ ExceptionState& exception_state = ASSERT_NO_EXCEPTION) {
+ return createElement(nullptr, local_name, exception_state);
+ }
+ Element* createElement(const LocalDOMWindow*,
+ const AtomicString& local_name,
const StringOrDictionary&,
ExceptionState& = ASSERT_NO_EXCEPTION);
- Element* createElementNS(const AtomicString& namespace_uri,
+ Element* createElementNS(const LocalDOMWindow*,
+ const AtomicString& namespace_uri,
const AtomicString& qualified_name,
const StringOrDictionary&,
ExceptionState&);
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMImplementation.idl ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698