Fixed invalid display of handlers for R2L languages
authorprathmesh.m <prathmesh.m@samsung.com>
Mon, 1 Jul 2013 09:20:30 +0000 (14:50 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 10 Oct 2013 05:49:04 +0000 (05:49 +0000)
commite057e3bb785021e70c637a63c714640492c5ec02
treec94420b425c16ce659b6f7337cadb2c56087ef7d
parent3001c8be1c8fdfbbceaffcfd4e396a4e7658733c
Fixed invalid display of handlers for R2L languages

[Title] Fixed invalid display of handlers for R2L languages
[Issue#] WEB-3433, WEB-3434
[Problem] Long press and extend the selection to multiple lines
    then the first selected lies getting cleared
[Cause] Handles were drawn according to the selection rects. In all
    cases the bottom left of 1st rect and bottom right of last rect
    was used for drawing handlers. This is correct in case of L2R
    languages as the base of selection will be at start of 1st rect
    and extent at the end of last rect, but in case of R2L languages
    the base is at the end of 1st rect and the extent is at the start
    of the last rect
[Solution] Obtained the direction of selected text from
    frameselection and depending on the selection direction if the
    language is R2L draw the handlers at end of 1st rect and start
    of the last rect.

Change-Id: I4528b7b5744e3db30cdae42d90f2201f326271d4
12 files changed:
Source/WebCore/editing/FrameSelection.h [changed mode: 0644->0755]
Source/WebKit2/Platform/CoreIPC/HandleMessage.h
Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/API/efl/tizen/TextSelection.cpp
Source/WebKit2/UIProcess/API/efl/tizen/TextSelection.h
Source/WebKit2/UIProcess/API/efl/tizen/TextSelectionHandle.cpp [changed mode: 0644->0755]
Source/WebKit2/UIProcess/API/efl/tizen/TextSelectionHandle.h
Source/WebKit2/UIProcess/WebPageProxy.h
Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp
Source/WebKit2/WebProcess/WebPage/WebPage.h
Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp