[Title] Unable to Drag the content with Selection Handler.
[Issue#] P130812-05130
[Problem] Drag is not happening when content is Editable.
[Cause] Current Drag is blocked for the elements with
ContentEditable equal to true.
[Solution] Do the calculation for both the elements whether
contents are editable or not.
Change-Id: Ic102935d99b177c7ded86eafcd4bea7c15f33b23
void TextSelection::scrollContentWithSelectionIfRequired(const IntPoint& evasPoint)
{
- EditorState editorState = m_viewImpl->page()->editorState();
- if (editorState.isContentEditable)
- return;
-
+ // Content should get scroll irrespective whether content is editable or not.
setSelectionScrollingStatus(true);
IntRect unscaledVisibleContentRect = m_viewImpl->pageClient->visibleContentRect();
const int scrollClipValue = 50;