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

Unified Diff: third_party/WebKit/Source/core/dom/Range.h

Issue 2812733003: Let RangeboundaryPoint::container_node_ be reference. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Range.h
diff --git a/third_party/WebKit/Source/core/dom/Range.h b/third_party/WebKit/Source/core/dom/Range.h
index b8ddecea2e6da052b476f710c733c2a04968cf31..c6918ffa4025482ee6aed2350bdde4a7716782f1 100644
--- a/third_party/WebKit/Source/core/dom/Range.h
+++ b/third_party/WebKit/Source/core/dom/Range.h
@@ -68,9 +68,9 @@ class CORE_EXPORT Range final : public GarbageCollected<Range>,
DCHECK(owner_document_);
return *owner_document_.Get();
}
- Node* startContainer() const { return start_.Container(); }
+ Node* startContainer() const { return &start_.Container(); }
unsigned startOffset() const { return start_.Offset(); }
- Node* endContainer() const { return end_.Container(); }
+ Node* endContainer() const { return &end_.Container(); }
unsigned endOffset() const { return end_.Offset(); }
bool collapsed() const { return start_ == end_; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698