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

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

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.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h
index 192059fbc618e278bce8ecab773fd0e88ca36daa..10d7487a5332b29130e16dfa6689dcc7d5467dd4 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h
@@ -41,20 +41,20 @@ class Document;
class Element;
class HTMLScriptRunnerHost;
-class HTMLScriptRunner final : public NoBaseWillBeGarbageCollectedFinalized<HTMLScriptRunner>, private ScriptResourceClient {
- WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLScriptRunner);
- WILL_BE_USING_PRE_FINALIZER(HTMLScriptRunner, detach);
+class HTMLScriptRunner final : public GarbageCollectedFinalized<HTMLScriptRunner>, private ScriptResourceClient {
+ WTF_MAKE_NONCOPYABLE(HTMLScriptRunner);
+ USING_PRE_FINALIZER(HTMLScriptRunner, detach);
public:
- static PassOwnPtrWillBeRawPtr<HTMLScriptRunner> create(Document* document, HTMLScriptRunnerHost* host)
+ static RawPtr<HTMLScriptRunner> create(Document* document, HTMLScriptRunnerHost* host)
{
- return adoptPtrWillBeNoop(new HTMLScriptRunner(document, host));
+ return new HTMLScriptRunner(document, host);
}
~HTMLScriptRunner();
void detach();
// Processes the passed in script and any pending scripts if possible.
- void execute(PassRefPtrWillBeRawPtr<Element> scriptToProcess, const TextPosition& scriptStartPosition);
+ void execute(RawPtr<Element> scriptToProcess, const TextPosition& scriptStartPosition);
void executeScriptsWaitingForLoad(Resource*);
bool hasScriptsWaitingForResources() const { return m_hasScriptsWaitingForResources; }
@@ -87,11 +87,11 @@ private:
void stopWatchingResourceForLoad(Resource*);
- RawPtrWillBeMember<Document> m_document;
- RawPtrWillBeMember<HTMLScriptRunnerHost> m_host;
- OwnPtrWillBeMember<PendingScript> m_parserBlockingScript;
+ Member<Document> m_document;
+ Member<HTMLScriptRunnerHost> m_host;
+ Member<PendingScript> m_parserBlockingScript;
// http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing
- WillBeHeapDeque<OwnPtrWillBeMember<PendingScript>> m_scriptsToExecuteAfterParsing;
+ HeapDeque<Member<PendingScript>> m_scriptsToExecuteAfterParsing;
unsigned m_scriptNestingLevel;
// We only want stylesheet loads to trigger script execution if script

Powered by Google App Engine
This is Rietveld 408576698