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

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

Issue 2687273002: Selection API: Mutating a Range object after adding it to Selection should update Selection attribu… (Closed)
Patch Set: Handle diffrent root cases Created 3 years, 10 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: 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 7332da61496f1d49a830be3713cb612db72ba3a2..18bc278cd43c69ba6a620c5c81d999227144720d 100644
--- a/third_party/WebKit/Source/core/dom/Range.h
+++ b/third_party/WebKit/Source/core/dom/Range.h
@@ -207,6 +207,8 @@ class CORE_EXPORT Range final : public GarbageCollected<Range>,
Node* clonedContainer,
Node* commonRoot,
ExceptionState&);
+ void updateSelectionIfAddedToSelection();
+ void removeFromSelectionIfInDifferentRoot(Document& oldDocument);
Member<Document> m_ownerDocument; // Cannot be null.
RangeBoundaryPoint m_start;

Powered by Google App Engine
This is Rietveld 408576698