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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 45779fd4eebdb584b36e6ec3a1fedc9ae4e3feca..d52ddf134c6e5c95bb137b92d1b8c63c03284da0 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.cpp
@@ -158,7 +158,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();
}
@@ -204,7 +204,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();
if (ScriptLoader* scriptLoader = toScriptLoaderIfPossible(element.get())) {
NestingLevelIncrementer nestingLevelIncrementer(m_scriptNestingLevel);
IgnoreDestructiveWriteCountIncrementer ignoreDestructiveWriteCountIncrementer(m_document);
@@ -259,7 +259,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",
@@ -329,7 +329,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)
@@ -361,7 +361,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;

Powered by Google App Engine
This is Rietveld 408576698