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

Unified Diff: third_party/WebKit/Source/core/html/forms/ColorInputType.cpp

Issue 2110783002: Open a color input with display:none via a label (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated test case as per review comments Created 4 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/color/display-none-input-color-chooser-shown.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
index 3dd217acfd75aa5dfe7a994dca9ae9476ac6e6a8..66b9327d052b4ebc99e34f1738484b444ec8ceeb 100644
--- a/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/ColorInputType.cpp
@@ -167,7 +167,7 @@ void ColorInputType::setValue(const String& value, bool valueChanged, TextFieldE
void ColorInputType::handleDOMActivateEvent(Event* event)
{
- if (element().isDisabledFormControl() || !element().layoutObject())
+ if (element().isDisabledFormControl())
return;
if (!UserGestureIndicator::utilizeUserGesture())
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/color/display-none-input-color-chooser-shown.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698