Index: Source/core/html/forms/SearchInputType.cpp |
diff --git a/Source/core/html/forms/SearchInputType.cpp b/Source/core/html/forms/SearchInputType.cpp |
index 8b83268a971eaeb201a49f9c06fb54155ecf07af..07817df7c2fa0d7687b67f63202f50cdfdc35e77 100644 |
--- a/Source/core/html/forms/SearchInputType.cpp |
+++ b/Source/core/html/forms/SearchInputType.cpp |
@@ -171,9 +171,9 @@ void SearchInputType::updateCancelButtonVisibility() |
if (!button) |
return; |
if (element().value().isEmpty()) |
- button->setInlineStyleProperty(CSSPropertyVisibility, CSSValueHidden); |
+ button->setInlineStyleProperty(CSSPropertyOpacity, 0.0, CSSPrimitiveValue::CSS_NUMBER); |
else |
- button->removeInlineStyleProperty(CSSPropertyVisibility); |
+ button->removeInlineStyleProperty(CSSPropertyOpacity); |
} |
bool SearchInputType::supportsInputModeAttribute() const |