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 19 matching lines...) Expand all Loading... |
30 #include "core/dom/Element.h" | 30 #include "core/dom/Element.h" |
31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
32 #include "core/dom/IgnoreDestructiveWriteCountIncrementer.h" | 32 #include "core/dom/IgnoreDestructiveWriteCountIncrementer.h" |
33 #include "core/dom/Microtask.h" | 33 #include "core/dom/Microtask.h" |
34 #include "core/dom/ScriptLoader.h" | 34 #include "core/dom/ScriptLoader.h" |
35 #include "core/fetch/ScriptResource.h" | 35 #include "core/fetch/ScriptResource.h" |
36 #include "core/html/parser/HTMLInputStream.h" | 36 #include "core/html/parser/HTMLInputStream.h" |
37 #include "core/html/parser/HTMLScriptRunnerHost.h" | 37 #include "core/html/parser/HTMLScriptRunnerHost.h" |
38 #include "core/html/parser/NestingLevelIncrementer.h" | 38 #include "core/html/parser/NestingLevelIncrementer.h" |
39 #include "core/page/Frame.h" | 39 #include "core/page/Frame.h" |
40 #include "core/platform/NotImplemented.h" | 40 #include "platform/NotImplemented.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 using namespace HTMLNames; | 44 using namespace HTMLNames; |
45 | 45 |
46 HTMLScriptRunner::HTMLScriptRunner(Document* document, HTMLScriptRunnerHost* hos
t) | 46 HTMLScriptRunner::HTMLScriptRunner(Document* document, HTMLScriptRunnerHost* hos
t) |
47 : m_document(document) | 47 : m_document(document) |
48 , m_host(host) | 48 , m_host(host) |
49 , m_scriptNestingLevel(0) | 49 , m_scriptNestingLevel(0) |
50 , m_hasScriptsWaitingForResources(false) | 50 , m_hasScriptsWaitingForResources(false) |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 ScriptSourceCode sourceCode(script->textContent(), documentURLFo
rScriptExecution(m_document), scriptStartPosition); | 310 ScriptSourceCode sourceCode(script->textContent(), documentURLFo
rScriptExecution(m_document), scriptStartPosition); |
311 scriptLoader->executeScript(sourceCode); | 311 scriptLoader->executeScript(sourceCode); |
312 } | 312 } |
313 } else { | 313 } else { |
314 requestParsingBlockingScript(script); | 314 requestParsingBlockingScript(script); |
315 } | 315 } |
316 } | 316 } |
317 } | 317 } |
318 | 318 |
319 } | 319 } |
OLD | NEW |