Text selection is updated by timer when webview's geometry is changed.
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / ewk_view.cpp
index 7198e61..c9e3cca 100755 (executable)
@@ -1032,7 +1032,10 @@ static void _ewk_view_smart_calculate(Evas_Object* ewkView)
         impl->pageClient->frameRectChanged();
 #endif
 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
-        impl->pageClient->updateTextSelectionHandlesAndContextMenu(true);
+        if (impl->pageClient->isTextSelectionMode()) {
+            impl->pageClient->updateTextSelectionHandlesAndContextMenu(false);
+            impl->pageClient->requestToShowTextSelectionHandlesAndContextMenu();
+        }
 #endif
 #if ENABLE(TIZEN_WEBKIT2_FOCUS_RING)
         if (impl->focusRing())