Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: sky/engine/web/WebRange.cpp

Issue 928393003: Remove the concept of document.documentElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.cpp ('k') | sky/engine/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.cpp ('k') | sky/engine/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698