| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index 55a2de14e016a97b880825cff2767081799e7554..9b3acf29c786c69bbac1c56b5918f1d13b74af96 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1836,6 +1836,22 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection()
|
| }
|
| }
|
|
|
| +bool WebLocalFrameImpl::setCaretSelectionFromRangeSelection()
|
| +{
|
| + if (!frame()->selection().rootEditableElement() || !frame()->selection().isRange())
|
| + return false;
|
| +
|
| + // Collapse the selection to end of Range Selection.
|
| + WebRange currentSelectionRange = selectionRange();
|
| + if (RefPtrWillBeRawPtr<Range> range = static_cast<PassRefPtrWillBeRawPtr<Range> >(currentSelectionRange)) {
|
| + range->collapse(false);
|
| + selectRange(currentSelectionRange);
|
| + return true;
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| void WebLocalFrameImpl::didFail(const ResourceError& error, bool wasProvisional)
|
| {
|
| if (!client())
|
|
|