| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/dom/custom/CustomElementScheduler.h" | 32 #include "core/dom/custom/CustomElementScheduler.h" |
| 33 | 33 |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 36 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 36 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
| 37 #include "core/dom/custom/CustomElementCallbackInvocation.h" | 37 #include "core/dom/custom/CustomElementCallbackInvocation.h" |
| 38 #include "core/dom/custom/CustomElementLifecycleCallbacks.h" | 38 #include "core/dom/custom/CustomElementLifecycleCallbacks.h" |
| 39 #include "core/dom/custom/CustomElementMicrotaskDispatcher.h" | 39 #include "core/dom/custom/CustomElementMicrotaskDispatcher.h" |
| 40 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" | 40 #include "core/dom/custom/CustomElementMicrotaskImportStep.h" |
| 41 #include "core/dom/custom/CustomElementMicrotaskQueue.h" | |
| 42 #include "core/dom/custom/CustomElementMicrotaskResolutionStep.h" | 41 #include "core/dom/custom/CustomElementMicrotaskResolutionStep.h" |
| 43 #include "core/dom/custom/CustomElementRegistrationContext.h" | 42 #include "core/dom/custom/CustomElementRegistrationContext.h" |
| 44 #include "core/html/imports/HTMLImportChild.h" | 43 #include "core/html/imports/HTMLImportChild.h" |
| 45 | 44 |
| 46 namespace WebCore { | 45 namespace WebCore { |
| 47 | 46 |
| 48 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler) | 47 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler) |
| 49 | 48 |
| 50 void CustomElementScheduler::scheduleCallback(PassRefPtr<CustomElementLifecycleC
allbacks> callbacks, PassRefPtrWillBeRawPtr<Element> element, CustomElementLifec
ycleCallbacks::CallbackType type) | 49 void CustomElementScheduler::scheduleCallback(PassRefPtr<CustomElementLifecycleC
allbacks> callbacks, PassRefPtrWillBeRawPtr<Element> element, CustomElementLifec
ycleCallbacks::CallbackType type) |
| 51 { | 50 { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 CustomElementMicrotaskDispatcher::instance().enqueue(&callbackQueue); | 146 CustomElementMicrotaskDispatcher::instance().enqueue(&callbackQueue); |
| 148 return callbackQueue; | 147 return callbackQueue; |
| 149 } | 148 } |
| 150 | 149 |
| 151 void CustomElementScheduler::trace(Visitor* visitor) | 150 void CustomElementScheduler::trace(Visitor* visitor) |
| 152 { | 151 { |
| 153 visitor->trace(m_elementCallbackQueueMap); | 152 visitor->trace(m_elementCallbackQueueMap); |
| 154 } | 153 } |
| 155 | 154 |
| 156 } // namespace WebCore | 155 } // namespace WebCore |
| OLD | NEW |