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

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

Issue 1798253002: Stop scheduling in-order script execution upon hitting failed script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix msvc compilation 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();
74 75
75 void postTask(const WebTraceLocation&); 76 void postTask(const WebTraceLocation&);
76 77
77 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>* ); 78 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>* );
78 79
79 void executeTask(); 80 void executeTask();
80 81
81 RawPtrWillBeMember<Document> m_document; 82 RawPtrWillBeMember<Document> m_document;
82 83
83 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts; 84 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts;
(...skipping 14 matching lines...) Expand all
98 99
99 #if !ENABLE(OILPAN) 100 #if !ENABLE(OILPAN)
100 bool m_isDisposed; 101 bool m_isDisposed;
101 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks; 102 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks;
102 #endif 103 #endif
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // ScriptRunner_h 108 #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