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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 942933003: Remove almost all clients of isHTMLElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/build/scripts/templates/ElementFactory.h.tmpl ('k') | sky/engine/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index d742219eb116bcfb91299ea63452133ffebde5f1..6c3752e9c2270903e5a981ade7a8cf4b20afb742 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -415,7 +415,7 @@ PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionS
return nullptr;
}
- return HTMLElementFactory::createHTMLElement(name, *this, false);
+ return HTMLElementFactory::createElement(name, *this, false);
}
PassRefPtr<DartValue> Document::registerElement(DartState*, const AtomicString& name, ExceptionState& exceptionState)
@@ -585,7 +585,7 @@ PassRefPtr<Node> Document::adoptNode(PassRefPtr<Node> source, ExceptionState& ex
PassRefPtr<Element> Document::createElement(const QualifiedName& qName, bool createdByParser)
{
// FIXME(sky): This should only take a local name.
- return HTMLElementFactory::createHTMLElement(qName.localName(), *this, createdByParser);
+ return HTMLElementFactory::createElement(qName.localName(), *this, createdByParser);
}
String Document::readyState() const
« no previous file with comments | « sky/engine/build/scripts/templates/ElementFactory.h.tmpl ('k') | sky/engine/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698