| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void requestParsingBlockingScript(Element*); | 82 void requestParsingBlockingScript(Element*); |
| 83 void requestDeferredScript(Element*); | 83 void requestDeferredScript(Element*); |
| 84 bool requestPendingScript(PendingScript*, Element*) const; | 84 bool requestPendingScript(PendingScript*, Element*) const; |
| 85 | 85 |
| 86 void runScript(Element*, const TextPosition& scriptStartPosition); | 86 void runScript(Element*, const TextPosition& scriptStartPosition); |
| 87 | 87 |
| 88 bool isPendingScriptReady(const PendingScript*); | 88 bool isPendingScriptReady(const PendingScript*); |
| 89 | 89 |
| 90 void stopWatchingResourceForLoad(Resource*); | 90 void stopWatchingResourceForLoad(Resource*); |
| 91 | 91 |
| 92 void possiblyFetchBlockedDocWriteScript(Resource*); |
| 93 |
| 92 RefPtr<HTMLParserReentryPermit> m_reentryPermit; | 94 RefPtr<HTMLParserReentryPermit> m_reentryPermit; |
| 93 Member<Document> m_document; | 95 Member<Document> m_document; |
| 94 Member<HTMLScriptRunnerHost> m_host; | 96 Member<HTMLScriptRunnerHost> m_host; |
| 95 Member<PendingScript> m_parserBlockingScript; | 97 Member<PendingScript> m_parserBlockingScript; |
| 96 // http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-w
ill-execute-when-the-document-has-finished-parsing | 98 // http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-w
ill-execute-when-the-document-has-finished-parsing |
| 97 HeapDeque<Member<PendingScript>> m_scriptsToExecuteAfterParsing; | 99 HeapDeque<Member<PendingScript>> m_scriptsToExecuteAfterParsing; |
| 98 | 100 |
| 99 // We only want stylesheet loads to trigger script execution if script | 101 // We only want stylesheet loads to trigger script execution if script |
| 100 // execution is currently stopped due to stylesheet loads, otherwise we'd | 102 // execution is currently stopped due to stylesheet loads, otherwise we'd |
| 101 // cause nested script execution when parsing <style> tags since </style> | 103 // cause nested script execution when parsing <style> tags since </style> |
| 102 // tags can cause Document to call executeScriptsWaitingForResources. | 104 // tags can cause Document to call executeScriptsWaitingForResources. |
| 103 bool m_hasScriptsWaitingForResources; | 105 bool m_hasScriptsWaitingForResources; |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace blink | 108 } // namespace blink |
| 107 | 109 |
| 108 #endif | 110 #endif |
| OLD | NEW |