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

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

Issue 594093002: Fix for mouse capture and release on ClearButtonElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/forms/BaseMultipleFieldsDateAndTimeInputType.cpp
diff --git a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp
index 2709f76299ff0e997c1f40029705ed9958ac813e..13b634510254d48a4b7956e3e8d1a269ae775689 100644
--- a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp
+++ b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp
@@ -420,14 +420,12 @@ void BaseMultipleFieldsDateAndTimeInputType::forwardEvent(Event* event)
void BaseMultipleFieldsDateAndTimeInputType::disabledAttributeChanged()
{
spinButtonElement()->releaseCapture();
- clearButtonElement()->releaseCapture();
if (DateTimeEditElement* edit = dateTimeEditElement())
edit->disabledStateChanged();
}
void BaseMultipleFieldsDateAndTimeInputType::requiredAttributeChanged()
{
- clearButtonElement()->releaseCapture();
updateClearButtonVisibility();
}
@@ -467,7 +465,6 @@ void BaseMultipleFieldsDateAndTimeInputType::minOrMaxAttributeChanged()
void BaseMultipleFieldsDateAndTimeInputType::readonlyAttributeChanged()
{
spinButtonElement()->releaseCapture();
- clearButtonElement()->releaseCapture();
if (DateTimeEditElement* edit = dateTimeEditElement())
edit->readOnlyStateChanged();
}

Powered by Google App Engine
This is Rietveld 408576698