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

Unified Diff: Source/modules/speech/DOMWindowSpeechSynthesis.cpp

Issue 212933005: Oilpan: turn DOMWindow into a heap supplementable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make use of DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED() Created 6 years, 9 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 | « Source/modules/speech/DOMWindowSpeechSynthesis.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/DOMWindowSpeechSynthesis.cpp
diff --git a/Source/modules/speech/DOMWindowSpeechSynthesis.cpp b/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
index 8f55aa54a767dbb7786545d29fae25d29b0275df..816cd4ac5a984e3bf62dc8af1b93795c08588bbc 100644
--- a/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
+++ b/Source/modules/speech/DOMWindowSpeechSynthesis.cpp
@@ -54,10 +54,10 @@ const char* DOMWindowSpeechSynthesis::supplementName()
// static
DOMWindowSpeechSynthesis& DOMWindowSpeechSynthesis::from(DOMWindow& window)
{
- DOMWindowSpeechSynthesis* supplement = static_cast<DOMWindowSpeechSynthesis*>(Supplement<DOMWindow>::from(window, supplementName()));
+ DOMWindowSpeechSynthesis* supplement = static_cast<DOMWindowSpeechSynthesis*>(WillBeHeapSupplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
supplement = new DOMWindowSpeechSynthesis(window);
- provideTo(window, supplementName(), adoptPtr(supplement));
+ provideTo(window, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -75,4 +75,9 @@ SpeechSynthesis* DOMWindowSpeechSynthesis::speechSynthesis()
return m_speechSynthesis.get();
}
+void DOMWindowSpeechSynthesis::trace(Visitor* visitor)
+{
+ visitor->trace(m_speechSynthesis);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/speech/DOMWindowSpeechSynthesis.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698