Checking the clipboard status before appear context menu
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / PageClientImpl.cpp
index aa4f34e..3e9ad46 100644 (file)
@@ -398,10 +398,6 @@ void PageClientImpl::didChangeViewportProperties(const WebCore::ViewportAttribut
 #endif
     }
 
-#if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
-    updateTextSelectionHandlesAndContextMenu(true);
-#endif
-
 #if ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
     Ewk_View_Smart_Data* smartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get(m_viewWidget));
     if (smartData->api->formdata_candidate_is_showing(smartData))
@@ -1042,7 +1038,8 @@ void PageClientImpl::setVisibleContentRect(const IntRect& newRect, float newScal
 #endif
 
 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
-    updateTextSelectionHandlesAndContextMenu(true);
+    if (!isClipboardWindowOpened())
+        updateTextSelectionHandlesAndContextMenu(true);
 #endif
 }