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

Unified Diff: Source/core/dom/Document.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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 78fe20a9703fd6bc3632d4369dd5aae62e3beb79..e14055457c265de830f8809f82b5109ef12c1438 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1224,7 +1224,7 @@ PassRefPtr<Range> Document::caretRangeFromPoint(int x, int y)
if (shadowAncestorNode != node) {
unsigned offset = shadowAncestorNode->nodeIndex();
ContainerNode* container = shadowAncestorNode->parentNode();
- return Range::create(this, container, offset, container, offset);
+ return Range::create(*this, container, offset, container, offset);
}
RenderObject* renderer = node->renderer();
@@ -1235,7 +1235,7 @@ PassRefPtr<Range> Document::caretRangeFromPoint(int x, int y)
return 0;
Position rangeCompliantPosition = positionWithAffinity.position().parentAnchoredEquivalent();
- return Range::create(this, rangeCompliantPosition, rangeCompliantPosition);
+ return Range::create(*this, rangeCompliantPosition, rangeCompliantPosition);
}
/*
@@ -1457,7 +1457,7 @@ Settings* Document::settings() const
PassRefPtr<Range> Document::createRange()
{
- return Range::create(this);
+ return Range::create(*this);
}
PassRefPtr<NodeIterator> Document::createNodeIterator(Node* root, ExceptionState& es)

Powered by Google App Engine
This is Rietveld 408576698