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

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptRunner.h

Issue 1801053002: Revert of Stop scheduling in-order script execution upon hitting failed script. (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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 DECLARE_TRACE(); 65 DECLARE_TRACE();
66 66
67 private: 67 private:
68 class Task; 68 class Task;
69 69
70 explicit ScriptRunner(Document*); 70 explicit ScriptRunner(Document*);
71 71
72 void movePendingScript(ScriptRunner*, ScriptLoader*); 72 void movePendingScript(ScriptRunner*, ScriptLoader*);
73 bool removePendingInOrderScript(ScriptLoader*); 73 bool removePendingInOrderScript(ScriptLoader*);
74 void scheduleReadyInOrderScripts();
75 74
76 void postTask(const WebTraceLocation&); 75 void postTask(const WebTraceLocation&);
77 76
78 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>* ); 77 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>* );
79 78
80 void executeTask(); 79 void executeTask();
81 80
82 RawPtrWillBeMember<Document> m_document; 81 RawPtrWillBeMember<Document> m_document;
83 82
84 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts; 83 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts;
(...skipping 14 matching lines...) Expand all
99 98
100 #if !ENABLE(OILPAN) 99 #if !ENABLE(OILPAN)
101 bool m_isDisposed; 100 bool m_isDisposed;
102 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks; 101 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks;
103 #endif 102 #endif
104 }; 103 };
105 104
106 } // namespace blink 105 } // namespace blink
107 106
108 #endif // ScriptRunner_h 107 #endif // ScriptRunner_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.h ('k') | third_party/WebKit/Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698