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

Unified Diff: Source/web/WebRange.cpp

Issue 23467007: Have Range constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
Index: Source/web/WebRange.cpp
diff --git a/Source/web/WebRange.cpp b/Source/web/WebRange.cpp
index 5684b2665ad850d9cbbfd0dab6450ed94f520189..67d4b24926eb0c09bb99b3bc7fe0702bb6712ead 100644
--- a/Source/web/WebRange.cpp
+++ b/Source/web/WebRange.cpp
@@ -127,7 +127,7 @@ WebVector<WebFloatQuad> WebRange::textQuads() const
if (isNull())
return WebVector<WebFloatQuad>();
- Frame* frame = m_private->ownerDocument() ? m_private->ownerDocument()->frame() : 0;
+ Frame* frame = m_private->ownerDocument().frame();
if (!frame)
return WebVector<WebFloatQuad>();

Powered by Google App Engine
This is Rietveld 408576698