| Index: third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| index e9862a31e75bcb7baa1e01a98b98bd0681880fdb..10b433ae42607d0dc0d430cdc53c5d702dd13793 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
|
| @@ -160,7 +160,7 @@ void HTMLScriptRunner::detach()
|
| m_parserBlockingScript->releaseElementAndClear();
|
|
|
| while (!m_scriptsToExecuteAfterParsing.isEmpty()) {
|
| - OwnPtrWillBeRawPtr<PendingScript> pendingScript = m_scriptsToExecuteAfterParsing.takeFirst();
|
| + RawPtr<PendingScript> pendingScript = m_scriptsToExecuteAfterParsing.takeFirst();
|
| pendingScript->stopWatchingForLoad();
|
| pendingScript->releaseElementAndClear();
|
| }
|
| @@ -207,7 +207,7 @@ void HTMLScriptRunner::executePendingScriptAndDispatchEvent(PendingScript* pendi
|
|
|
| TextPosition scriptStartPosition = pendingScript->startingPosition();
|
| // Clear the pending script before possible re-entrancy from executeScript()
|
| - RefPtrWillBeRawPtr<Element> element = pendingScript->releaseElementAndClear();
|
| + RawPtr<Element> element = pendingScript->releaseElementAndClear();
|
| double compilationFinishTime = 0;
|
| if (ScriptLoader* scriptLoader = toScriptLoaderIfPossible(element.get())) {
|
| NestingLevelIncrementer nestingLevelIncrementer(m_scriptNestingLevel);
|
| @@ -270,7 +270,7 @@ void HTMLScriptRunner::notifyFinished(Resource* cachedResource)
|
| // Implements the steps for 'An end tag whose tag name is "script"'
|
| // http://whatwg.org/html#scriptEndTag
|
| // Script handling lives outside the tree builder to keep each class simple.
|
| -void HTMLScriptRunner::execute(PassRefPtrWillBeRawPtr<Element> scriptElement, const TextPosition& scriptStartPosition)
|
| +void HTMLScriptRunner::execute(RawPtr<Element> scriptElement, const TextPosition& scriptStartPosition)
|
| {
|
| ASSERT(scriptElement);
|
| TRACE_EVENT1("blink", "HTMLScriptRunner::execute",
|
| @@ -339,7 +339,7 @@ bool HTMLScriptRunner::executeScriptsWaitingForParsing()
|
| traceParserBlockingScript(m_scriptsToExecuteAfterParsing.first().get(), !m_document->isScriptExecutionReady());
|
| return false;
|
| }
|
| - OwnPtrWillBeRawPtr<PendingScript> first = m_scriptsToExecuteAfterParsing.takeFirst();
|
| + RawPtr<PendingScript> first = m_scriptsToExecuteAfterParsing.takeFirst();
|
| executePendingScriptAndDispatchEvent(first.get(), ScriptStreamer::Deferred);
|
| // FIXME: What is this m_document check for?
|
| if (!m_document)
|
| @@ -371,7 +371,7 @@ void HTMLScriptRunner::requestParsingBlockingScript(Element* element)
|
|
|
| void HTMLScriptRunner::requestDeferredScript(Element* element)
|
| {
|
| - OwnPtrWillBeRawPtr<PendingScript> pendingScript = PendingScript::create(nullptr, nullptr);
|
| + RawPtr<PendingScript> pendingScript = PendingScript::create(nullptr, nullptr);
|
| if (!requestPendingScript(pendingScript.get(), element))
|
| return;
|
|
|
|
|