From: Taeyun An Date: Fri, 6 Sep 2013 04:37:35 +0000 (+0900) Subject: Prevent to select word on which have SELECT_NONE property X-Git-Tag: 2.2.1_release~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be7b7a7fd9b791347c3eace5dfed06ed801bb72c;p=framework%2Fweb%2Fwebkit-efl.git Prevent to select word on which have SELECT_NONE property [Title] Prevent to select word on which have SELECT_NONE property [Issue#] N/A [Problem] Selection is working incorrectly where in wrong position on which is having SELECT_NONE property [Cause] There is no return status while proceed selectClosestWord API if node has SELECT_NONE value [Solution] Prevent to select word on which have SELECT_NONE property Change-Id: I4c7c4e4ebec6c885e186c170c70ea9863f55fb2b --- diff --git a/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp b/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp index f8d9606..c195e6f 100755 --- a/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp +++ b/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp @@ -1276,6 +1276,9 @@ void WebPage::selectClosestWord(const IntPoint& point, bool& result) if (!node) return; + if (node->renderer() && node->renderer()->style() && (node->renderer()->style()->userSelect() == SELECT_NONE)) + return; + Frame* newFocusFrame = node->document()->frame(); if (focusedFrame != newFocusFrame) { m_page->focusController()->setFocusedFrame(newFocusFrame);