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

Unified Diff: Source/core/dom/Range.cpp

Issue 1329253002: WIP: prefer using EphemeralRange for SpellChecker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: introduce Range::dispose() Created 5 years, 3 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: Source/core/dom/Range.cpp
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp
index 4fa8b8b9c967ac96e518ae08f00915e822a667e9..f919f0ae6b201ab2bd632095bb1721aaf9659704 100644
--- a/Source/core/dom/Range.cpp
+++ b/Source/core/dom/Range.cpp
@@ -135,6 +135,13 @@ Range::~Range()
}
#endif
+void Range::dispose()
+{
+#if ENABLE(OILPAN)
haraken 2015/09/09 23:48:11 Add a comment about why we want to call detachRang
+ m_ownerDocument->detachRange(this);
+#endif
+}
+
void Range::setDocument(Document& document)
{
ASSERT(m_ownerDocument != document);

Powered by Google App Engine
This is Rietveld 408576698