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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1329253002: WIP: prefer using EphemeralRange for SpellChecker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use ScopedDisposal<T> 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/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 5e2b49ed4ad94f60b53136cab1ed99bba2dc580d..2e944b02c0b224c0c0540378e1f36b121a1d65d7 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -256,6 +256,10 @@ static void frameContentAsPlainText(size_t maxChars, LocalFrame* frame, StringBu
// Select the document body.
RefPtrWillBeRawPtr<Range> range(document->createRange());
+#if ENABLE(OILPAN)
+ ScopedDisposal<Range> disposeScope(range);
+#endif
+
TrackExceptionState exceptionState;
range->selectNodeContents(document->body(), exceptionState);

Powered by Google App Engine
This is Rietveld 408576698