| Index: sky/engine/web/WebRange.cpp
|
| diff --git a/sky/engine/web/WebRange.cpp b/sky/engine/web/WebRange.cpp
|
| index 6de48a2016ecc4827047c1c58719dffa89963c8f..08ac78be14dee66121436a7078aa46dc7b104f46 100644
|
| --- a/sky/engine/web/WebRange.cpp
|
| +++ b/sky/engine/web/WebRange.cpp
|
| @@ -101,8 +101,8 @@ WebRange WebRange::expandedToParagraph() const
|
| WebRange WebRange::fromDocumentRange(WebLocalFrame* frame, int start, int length)
|
| {
|
| LocalFrame* webFrame = toWebLocalFrameImpl(frame)->frame();
|
| - Element* selectionRoot = webFrame->selection().rootEditableElement();
|
| - ContainerNode* scope = selectionRoot ? selectionRoot : webFrame->document()->documentElement();
|
| + ContainerNode* selectionRoot = webFrame->selection().rootEditableElement();
|
| + ContainerNode* scope = selectionRoot ? selectionRoot : webFrame->document();
|
| return PlainTextRange(start, start + length).createRange(*scope);
|
| }
|
|
|
|
|