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

Unified Diff: Source/core/testing/Internals.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/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index d9b4292ea4857ca210a851cfc33bde29b54eef2c..225b15e26a942d936bbbbefa58999e3498892767 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -891,7 +891,7 @@ PassRefPtr<Range> Internals::markerRangeForNode(Node* node, const String& marker
DocumentMarker* marker = markerAt(node, markerType, index, es);
if (!marker)
return 0;
- return Range::create(&node->document(), node, marker->startOffset(), node, marker->endOffset());
+ return Range::create(node->document(), node, marker->startOffset(), node, marker->endOffset());
}
String Internals::markerDescriptionForNode(Node* node, const String& markerType, unsigned index, ExceptionState& es)
@@ -904,8 +904,8 @@ String Internals::markerDescriptionForNode(Node* node, const String& markerType,
void Internals::addTextMatchMarker(const Range* range, bool isActive)
{
- range->ownerDocument()->updateLayoutIgnorePendingStylesheets();
- range->ownerDocument()->markers()->addTextMatchMarker(range, isActive);
+ range->ownerDocument().updateLayoutIgnorePendingStylesheets();
+ range->ownerDocument().markers()->addTextMatchMarker(range, isActive);
}
void Internals::setMarkersActive(Node* node, unsigned startOffset, unsigned endOffset, bool active, ExceptionState& es)

Powered by Google App Engine
This is Rietveld 408576698