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

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

Issue 2416963007: Range object should check root node identify instead of inActiveDocument(). (Closed)
Patch Set: Use isInTreeScope Created 4 years, 2 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 ac40dfc51c27f2fc1f2d68cd0b9851384277dfee..cb70153bd6ec58a7a7dde712c0ebb00a0423f124 100644
--- a/third_party/WebKit/Source/core/dom/Range.h
+++ b/third_party/WebKit/Source/core/dom/Range.h
@@ -182,6 +182,7 @@ class CORE_EXPORT Range final : public GarbageCollected<Range>,
void checkNodeBA(Node*, ExceptionState&) const;
void checkExtractPrecondition(ExceptionState&);
+ bool hasSameRoot(const Node&) const;
enum ActionType { DELETE_CONTENTS, EXTRACT_CONTENTS, CLONE_CONTENTS };
DocumentFragment* processContents(ActionType, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698