OLD | NEW |
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 void runScript(Element*, const TextPosition& scriptStartPosition); | 81 void runScript(Element*, const TextPosition& scriptStartPosition); |
82 | 82 |
83 bool isPendingScriptReady(const PendingScript&); | 83 bool isPendingScriptReady(const PendingScript&); |
84 | 84 |
85 void stopWatchingResourceForLoad(Resource*); | 85 void stopWatchingResourceForLoad(Resource*); |
86 | 86 |
87 RawPtrWillBeMember<Document> m_document; | 87 RawPtrWillBeMember<Document> m_document; |
88 RawPtrWillBeMember<HTMLScriptRunnerHost> m_host; | 88 RawPtrWillBeMember<HTMLScriptRunnerHost> m_host; |
89 PendingScript m_parserBlockingScript; | 89 PendingScript m_parserBlockingScript; |
90 HeapDeque<PendingScript> m_scriptsToExecuteAfterParsing; // http://www.whatw
g.org/specs/web-apps/current-work/#list-of-scripts-that-will-execute-when-the-do
cument-has-finished-parsing | 90 // http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-w
ill-execute-when-the-document-has-finished-parsing |
| 91 WillBeHeapDeque<PendingScript> m_scriptsToExecuteAfterParsing; |
91 unsigned m_scriptNestingLevel; | 92 unsigned m_scriptNestingLevel; |
92 | 93 |
93 // We only want stylesheet loads to trigger script execution if script | 94 // We only want stylesheet loads to trigger script execution if script |
94 // execution is currently stopped due to stylesheet loads, otherwise we'd | 95 // execution is currently stopped due to stylesheet loads, otherwise we'd |
95 // cause nested script execution when parsing <style> tags since </style> | 96 // cause nested script execution when parsing <style> tags since </style> |
96 // tags can cause Document to call executeScriptsWaitingForResources. | 97 // tags can cause Document to call executeScriptsWaitingForResources. |
97 bool m_hasScriptsWaitingForResources; | 98 bool m_hasScriptsWaitingForResources; |
98 | 99 |
99 // For tracking the times between script load and compilation, we need to | 100 // For tracking the times between script load and compilation, we need to |
100 // know whether a parser blocking script was loaded previously, or whether | 101 // know whether a parser blocking script was loaded previously, or whether |
101 // it's really loaded when requested. | 102 // it's really loaded when requested. |
102 bool m_parserBlockingScriptAlreadyLoaded; | 103 bool m_parserBlockingScriptAlreadyLoaded; |
103 }; | 104 }; |
104 | 105 |
105 } | 106 } |
106 | 107 |
107 #endif | 108 #endif |
OLD | NEW |