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

Unified Diff: Source/core/html/forms/TextFieldInputType.cpp

Issue 799893004: [Attempt 2] Inform Chrome client of changes to an input's datalist. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/page/ChromeClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index 297f642f4535de4e940117995cd107e93bb947dd..d557727648b5e2223158a3596220f6e17a59fa31 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -327,6 +327,8 @@ void TextFieldInputType::destroyShadowSubtree()
void TextFieldInputType::listAttributeTargetChanged()
{
+ if (Chrome* chrome = this->chrome())
+ chrome->client().textFieldDataListChanged(element());
Element* picker = element().userAgentShadowRoot()->getElementById(ShadowElementNames::pickerIndicator());
bool didHavePickerIndicator = picker;
bool willHavePickerIndicator = element().hasValidDataListOptions();
« no previous file with comments | « no previous file | Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698