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

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

Issue 1569273004: Move ResourceOwner on to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 0de179eefa6bc4cbb419c977d8b707357df5384d..89c357e7d83867877cd63dd956d08d56b9b08bf9 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h
@@ -72,24 +72,24 @@ private:
HTMLScriptRunner(Document*, HTMLScriptRunnerHost*);
void executeParsingBlockingScript();
- void executePendingScriptAndDispatchEvent(PendingScript&, PendingScript::Type);
+ void executePendingScriptAndDispatchEvent(PendingScript*, PendingScript::Type);
void executeParsingBlockingScripts();
void requestParsingBlockingScript(Element*);
void requestDeferredScript(Element*);
- bool requestPendingScript(PendingScript&, Element*) const;
+ bool requestPendingScript(PendingScript*, Element*) const;
void runScript(Element*, const TextPosition& scriptStartPosition);
- bool isPendingScriptReady(const PendingScript&);
+ bool isPendingScriptReady(const PendingScript*);
void stopWatchingResourceForLoad(Resource*);
RawPtrWillBeMember<Document> m_document;
RawPtrWillBeMember<HTMLScriptRunnerHost> m_host;
- PendingScript m_parserBlockingScript;
+ OwnPtrWillBeMember<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<PendingScript> m_scriptsToExecuteAfterParsing;
+ WillBeHeapDeque<OwnPtrWillBeMember<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