| Index: Source/web/WebRange.cpp
|
| diff --git a/Source/web/WebRange.cpp b/Source/web/WebRange.cpp
|
| index 907bff54a5c4b8484ee92958d9ce5a4fe82f04e6..56751ea493cf591c561f537e3634c5b31e681a4b 100644
|
| --- a/Source/web/WebRange.cpp
|
| +++ b/Source/web/WebRange.cpp
|
| @@ -116,7 +116,7 @@ WebRange WebRange::expandedToParagraph() const
|
| // static
|
| WebRange WebRange::fromDocumentRange(WebFrame* frame, int start, int length)
|
| {
|
| - WebCore::Frame* webFrame = static_cast<WebFrameImpl*>(frame)->frame();
|
| + WebCore::Frame* webFrame = toWebFrameImpl(frame)->frame();
|
| Element* selectionRoot = webFrame->selection()->rootEditableElement();
|
| ContainerNode* scope = selectionRoot ? selectionRoot : webFrame->document()->documentElement();
|
| return TextIterator::rangeFromLocationAndLength(scope, start, length);
|
|
|