| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class Resource; | 39 class Resource; |
| 40 class Document; | 40 class Document; |
| 41 class Element; | 41 class Element; |
| 42 class HTMLScriptRunnerHost; | 42 class HTMLScriptRunnerHost; |
| 43 | 43 |
| 44 class HTMLScriptRunner final : public GarbageCollectedFinalized<HTMLScriptRunner
>, private ScriptResourceClient { | 44 class HTMLScriptRunner final : public GarbageCollectedFinalized<HTMLScriptRunner
>, private ScriptResourceClient { |
| 45 WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); | 45 WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); |
| 46 USING_GARBAGE_COLLECTED_MIXIN(HTMLScriptRunner); |
| 46 USING_PRE_FINALIZER(HTMLScriptRunner, detach); | 47 USING_PRE_FINALIZER(HTMLScriptRunner, detach); |
| 47 public: | 48 public: |
| 48 static HTMLScriptRunner* create(Document* document, HTMLScriptRunnerHost* ho
st) | 49 static HTMLScriptRunner* create(Document* document, HTMLScriptRunnerHost* ho
st) |
| 49 { | 50 { |
| 50 return new HTMLScriptRunner(document, host); | 51 return new HTMLScriptRunner(document, host); |
| 51 } | 52 } |
| 52 ~HTMLScriptRunner(); | 53 ~HTMLScriptRunner(); |
| 53 | 54 |
| 54 void detach(); | 55 void detach(); |
| 55 | 56 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // We only want stylesheet loads to trigger script execution if script | 98 // We only want stylesheet loads to trigger script execution if script |
| 98 // execution is currently stopped due to stylesheet loads, otherwise we'd | 99 // execution is currently stopped due to stylesheet loads, otherwise we'd |
| 99 // cause nested script execution when parsing <style> tags since </style> | 100 // cause nested script execution when parsing <style> tags since </style> |
| 100 // tags can cause Document to call executeScriptsWaitingForResources. | 101 // tags can cause Document to call executeScriptsWaitingForResources. |
| 101 bool m_hasScriptsWaitingForResources; | 102 bool m_hasScriptsWaitingForResources; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace blink | 105 } // namespace blink |
| 105 | 106 |
| 106 #endif | 107 #endif |
| OLD | NEW |