Checking the clipboard status before appear context menu
authorTaeyun An <ty.an@samsung.com>
Mon, 25 Mar 2013 12:29:36 +0000 (21:29 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 26 Mar 2013 06:03:03 +0000 (15:03 +0900)
[Title] Changed signal for showing text selection handles.
[Issue#] N_SE-29804
[Problem] Context menu options does disappear after clipboard appear
[Cause] There is appear the context menu routine after clipboard appear
[Solution] Checking clipboard status before appear context menu

Change-Id: I8204b0fb2a48272583b20e6f837917cdfdb7d4c5

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
 }