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

Unified Diff: Source/web/WebFrameImpl.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/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index e5742f0ce3e9cb0167fe29afc929d1f327783bfc..9e632dea57b2b2903ded55f388459ac674a8e842 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -1482,7 +1482,7 @@ bool WebFrameImpl::find(int identifier, const WebString& searchText, const WebFi
else
setMarkerActive(m_activeMatch.get(), false);
- if (m_activeMatch && m_activeMatch->ownerDocument() != frame()->document())
+ if (m_activeMatch && &m_activeMatch->ownerDocument() != frame()->document())
m_activeMatch = 0;
// If the user has selected something since the last Find operation we want

Powered by Google App Engine
This is Rietveld 408576698