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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScope.cpp

Issue 2727563002: Selection API: document.open() should reset Selection. (Closed)
Patch Set: . 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/TreeScope.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
index 20c0f87fd42016a62c2ce63a050c633b8c3ad7d7..c8373ddb8497ade8c5652a920f6d819d1861ef1f 100644
--- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
@@ -75,6 +75,10 @@ TreeScope::TreeScope(Document& document)
TreeScope::~TreeScope() {}
+void TreeScope::resetTreeScope() {
+ m_selection = nullptr;
+}
+
TreeScope* TreeScope::olderShadowRootOrParentTreeScope() const {
if (rootNode().isShadowRoot()) {
if (ShadowRoot* olderShadowRoot =
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698