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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years 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.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
index c14205ed362668a2ff0c5168a02f709639dc24a4..51f38d8471e7bf6ebe03660a4ec7552d6584d313 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -936,8 +936,8 @@ HTMLElement* HTMLConstructionSite::createHTMLElement(AtomicHTMLToken* token) {
// FIXME: This can't use HTMLConstructionSite::createElement because we have
// to pass the current form element. We should rework form association to
// occur after construction to allow better code sharing here.
- element = HTMLElementFactory::createHTMLElement(
- token->name(), document, form, getCreateElementFlags());
+ element = HTMLElementFactory::createHTMLElement(token->name(), document,
+ getCreateElementFlags());
if (FormAssociated* formAssociatedElement =
element->toFormAssociatedOrNull()) {
formAssociatedElement->associateWith(form);

Powered by Google App Engine
This is Rietveld 408576698