summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/android/PopupMenuAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/android/PopupMenuAndroid.cpp')
-rw-r--r--WebCore/platform/android/PopupMenuAndroid.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/platform/android/PopupMenuAndroid.cpp b/WebCore/platform/android/PopupMenuAndroid.cpp
index 3e36ea4..b35ea0c 100644
--- a/WebCore/platform/android/PopupMenuAndroid.cpp
+++ b/WebCore/platform/android/PopupMenuAndroid.cpp
@@ -42,6 +42,9 @@ public:
virtual void replyInt(int value) {
if (m_popupClient) {
m_popupClient->popupDidHide();
+ // -2 is a special value signaling that the popup was canceled.
+ if (-2 == value)
+ return;
m_popupClient->valueChanged(value, true);
}
if (m_viewImpl)