Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: Source/core/dom/custom/CustomElementScheduler.cpp

Issue 334253005: Custom Elements: Encapsulates Async and Sync Queues into one class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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"
42 #include "core/dom/custom/CustomElementPendingMicrotaskSet.h"
dominicc (has gone to gerrit) 2014/06/18 00:11:28 Was this a spurious include? What needs this in he
Hajime Morrita 2014/06/18 00:57:06 Done.
43 #include "core/dom/custom/CustomElementRegistrationContext.h" 43 #include "core/dom/custom/CustomElementRegistrationContext.h"
44 #include "core/html/imports/HTMLImportChild.h" 44 #include "core/html/imports/HTMLImportChild.h"
45 45
46 namespace WebCore { 46 namespace WebCore {
47 47
48 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler) 48 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler)
49 49
50 void CustomElementScheduler::scheduleCallback(PassRefPtr<CustomElementLifecycleC allbacks> callbacks, PassRefPtrWillBeRawPtr<Element> element, CustomElementLifec ycleCallbacks::CallbackType type) 50 void CustomElementScheduler::scheduleCallback(PassRefPtr<CustomElementLifecycleC allbacks> callbacks, PassRefPtrWillBeRawPtr<Element> element, CustomElementLifec ycleCallbacks::CallbackType type)
51 { 51 {
52 ASSERT(type != CustomElementLifecycleCallbacks::AttributeChanged); 52 ASSERT(type != CustomElementLifecycleCallbacks::AttributeChanged);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 CustomElementMicrotaskDispatcher::instance().enqueue(&callbackQueue); 147 CustomElementMicrotaskDispatcher::instance().enqueue(&callbackQueue);
148 return callbackQueue; 148 return callbackQueue;
149 } 149 }
150 150
151 void CustomElementScheduler::trace(Visitor* visitor) 151 void CustomElementScheduler::trace(Visitor* visitor)
152 { 152 {
153 visitor->trace(m_elementCallbackQueueMap); 153 visitor->trace(m_elementCallbackQueueMap);
154 } 154 }
155 155
156 } // namespace WebCore 156 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698