| Index: sky/engine/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/sky/engine/core/html/parser/HTMLDocumentParser.cpp b/sky/engine/core/html/parser/HTMLDocumentParser.cpp
|
| index 1ed7fd5d9161347901179f4228ca15e37f05ab86..5d1b5d8b45661c27030731142eb7f072251d1bfe 100644
|
| --- a/sky/engine/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/sky/engine/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -41,7 +41,6 @@
|
| #include "core/inspector/InspectorTraceEvents.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/TraceEvent.h"
|
| -#include "wtf/Functional.h"
|
|
|
| namespace blink {
|
|
|
| @@ -82,7 +81,7 @@ void HTMLDocumentParser::parse(mojo::ScopedDataPipeConsumerHandle source)
|
|
|
| OwnPtr<BackgroundHTMLParser::Configuration> config = adoptPtr(new BackgroundHTMLParser::Configuration);
|
| config->source = source.Pass();
|
| - config->parser = m_weakFactory.createWeakPtr();
|
| + config->parser = m_weakFactory.GetWeakPtr();
|
|
|
| m_backgroundParser = BackgroundHTMLParser::create(config.release());
|
| HTMLParserThread::taskRunner()->PostTask(FROM_HERE,
|
| @@ -350,7 +349,7 @@ void HTMLDocumentParser::stopBackgroundParser()
|
|
|
| HTMLParserThread::taskRunner()->PostTask(FROM_HERE,
|
| base::Bind(&BackgroundHTMLParser::stop, m_backgroundParser));
|
| - m_weakFactory.revokeAll();
|
| + m_weakFactory.InvalidateWeakPtrs();
|
| }
|
|
|
| void HTMLDocumentParser::end()
|
|
|