| 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 25 matching lines...) Expand all  Loading... | 
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" | 
| 37 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" | 
| 38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" | 
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" | 
| 40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" | 
| 41 | 41 | 
| 42 namespace WebCore { | 42 namespace WebCore { | 
| 43 | 43 | 
| 44 class CustomElementDescriptor; | 44 class CustomElementDescriptor; | 
| 45 class CustomElementMicrotaskImportStep; | 45 class CustomElementMicrotaskImportStep; | 
|  | 46 class CustomElementRegistrationContext; | 
| 46 class Element; | 47 class Element; | 
| 47 class HTMLImportChild; | 48 class HTMLImportChild; | 
| 48 | 49 | 
| 49 class CustomElementScheduler FINAL : public NoBaseWillBeGarbageCollected<CustomE
    lementScheduler> { | 50 class CustomElementScheduler FINAL : public NoBaseWillBeGarbageCollected<CustomE
    lementScheduler> { | 
| 50     DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | 51     DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); | 
| 51 public: | 52 public: | 
| 52 | 53 | 
| 53     static void scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks>, Pa
    ssRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::CallbackType); | 54     static void scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks>, Pa
    ssRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::CallbackType); | 
| 54     static void scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecyc
    leCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& name, const A
    tomicString& oldValue, const AtomicString& newValue); | 55     static void scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecyc
    leCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& name, const A
    tomicString& oldValue, const AtomicString& newValue); | 
| 55 | 56 | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 76 | 77 | 
| 77     // The element -> callback queue map is populated by the scheduler | 78     // The element -> callback queue map is populated by the scheduler | 
| 78     // and owns the lifetimes of the CustomElementCallbackQueues. | 79     // and owns the lifetimes of the CustomElementCallbackQueues. | 
| 79     typedef WillBeHeapHashMap<RawPtrWillBeMember<Element>, OwnPtrWillBeMember<Cu
    stomElementCallbackQueue> > ElementCallbackQueueMap; | 80     typedef WillBeHeapHashMap<RawPtrWillBeMember<Element>, OwnPtrWillBeMember<Cu
    stomElementCallbackQueue> > ElementCallbackQueueMap; | 
| 80     ElementCallbackQueueMap m_elementCallbackQueueMap; | 81     ElementCallbackQueueMap m_elementCallbackQueueMap; | 
| 81 }; | 82 }; | 
| 82 | 83 | 
| 83 } | 84 } | 
| 84 | 85 | 
| 85 #endif // CustomElementScheduler_h | 86 #endif // CustomElementScheduler_h | 
| OLD | NEW | 
|---|