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

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 371413004: Fix for input/datalist failure when datalist is created outside document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 51c4fd0ef83fef4602c59a246282e813829fc202..560e92d42f6b2f25293f5a96b4098f8782438ac4 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -727,7 +727,6 @@ void HTMLInputElement::parseAttribute(const QualifiedName& name, const AtomicStr
m_hasNonEmptyList = !value.isEmpty();
if (m_hasNonEmptyList) {
resetListAttributeTargetObserver();
- listAttributeTargetChanged();
}
UseCounter::count(document(), UseCounter::ListAttribute);
} else if (name == webkitdirectoryAttr) {
@@ -1540,6 +1539,7 @@ void HTMLInputElement::setListAttributeTargetObserver(PassOwnPtrWillBeRawPtr<Lis
void HTMLInputElement::resetListAttributeTargetObserver()
{
+ listAttributeTargetChanged();
if (inDocument())
setListAttributeTargetObserver(ListAttributeTargetObserver::create(fastGetAttribute(listAttr), this));
else

Powered by Google App Engine
This is Rietveld 408576698