Chromium Code Reviews| Index: Source/modules/speech/SpeechGrammarList.cpp |
| diff --git a/Source/modules/speech/SpeechGrammarList.cpp b/Source/modules/speech/SpeechGrammarList.cpp |
| index 6dfe69ee483197a8d7472c6ab3988c8f7f10ae27..eee62a46f566433b487ffa9044b066cddfcba141 100644 |
| --- a/Source/modules/speech/SpeechGrammarList.cpp |
| +++ b/Source/modules/speech/SpeechGrammarList.cpp |
| @@ -31,9 +31,11 @@ |
| namespace WebCore { |
| -PassRefPtr<SpeechGrammarList> SpeechGrammarList::create() |
| +DEFINE_GC_INFO(SpeechGrammarList); |
| + |
| +PassRefPtrWillBeRawPtr<SpeechGrammarList> SpeechGrammarList::create() |
| { |
| - return adoptRef(new SpeechGrammarList); |
| + return adoptRefWillBeNoop(new SpeechGrammarList); |
| } |
| SpeechGrammar* SpeechGrammarList::item(unsigned long index) const |
| @@ -61,4 +63,11 @@ SpeechGrammarList::SpeechGrammarList() |
| ScriptWrappable::init(this); |
| } |
| +void SpeechGrammarList::trace(Visitor* visitor) |
| +{ |
| +#if ENABLE(OILPAN) |
|
zerny-chromium
2014/02/12 11:45:19
Nit: the #if should not be needed here.
sof
2014/02/12 11:48:33
It is & was needed; not sure what you are suggesti
zerny-chromium
2014/02/12 11:50:20
Does this give a compile error on a non-oilpan bui
sof
2014/02/12 11:54:43
As explained against an earlier patchset,
https:
|
| + visitor->trace(m_grammars); |
| +#endif |
| +} |
| + |
| } // namespace WebCore |