Chromium Code Reviews

Unified Diff: Source/core/dom/Node.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.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index c1df2d6e901ca7d8867db37f10611d8a034eedfb..5663988ae61aef9420577a71f9e386e5da9490f3 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -2606,7 +2606,7 @@ void Node::removedLastRef()
void Node::textRects(Vector<IntRect>& rects) const
{
- RefPtr<Range> range = Range::create(&document());
+ RefPtr<Range> range = Range::create(document());
range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION);
range->textRects(rects);
}

Powered by Google App Engine