Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
index aa894aeee83a09ce6d791669d9c477ef31d8b2ac..271a9d84cedf1ffc61b0d23912f1481b92152030 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
@@ -1919,8 +1919,12 @@ void HTMLSelectElement::showPopup() |
return; |
if (!layoutObject() || !layoutObject()->isMenuList()) |
return; |
+ // Disable visibility check on Android. elementRectRelativeToViewport() |
+ // doesn't work well on Android WebView. crbug.com/632561 |
+#if !OS(ANDROID) |
if (elementRectRelativeToViewport().isEmpty()) |
return; |
+#endif |
if (!m_popup) |
m_popup = document().frameHost()->chromeClient().openPopupMenu(*document().frame(), *this); |