https://bugs.webkit.org/show_bug.cgi?id=115831
Reviewed by Andreas Kling.
Removed the function added in r120985 for Chromium Android port.
* editing/Editor.cpp:
* editing/Editor.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149785
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-05-08 Ryosuke Niwa <rniwa@webkit.org>
+
+ Remove Editor::setSelectionOffsets
+ https://bugs.webkit.org/show_bug.cgi?id=115831
+
+ Reviewed by Andreas Kling.
+
+ Removed the function added in r120985 for Chromium Android port.
+
+ * editing/Editor.cpp:
+ * editing/Editor.h:
+
2013-05-07 Ryosuke Niwa <rniwa@webkit.org>
Potential use-after-free of Frame
return true;
}
-bool Editor::setSelectionOffsets(int selectionStart, int selectionEnd)
-{
- Element* rootEditableElement = m_frame->selection()->rootEditableElement();
- if (!rootEditableElement)
- return false;
-
- RefPtr<Range> range = TextIterator::rangeFromLocationAndLength(rootEditableElement, selectionStart, selectionEnd - selectionStart);
- if (!range)
- return false;
-
- return m_frame->selection()->setSelectedRange(range.get(), VP_DEFAULT_AFFINITY, false);
-}
-
void Editor::transpose()
{
if (!canEdit())
bool cancelCompositionIfSelectionIsInvalid();
PassRefPtr<Range> compositionRange() const;
bool getCompositionSelection(unsigned& selectionStart, unsigned& selectionEnd) const;
- bool setSelectionOffsets(int selectionStart, int selectionEnd);
// getting international text input composition state (for use by InlineTextBox)
Text* compositionNode() const { return m_compositionNode.get(); }