| Index: Source/core/dom/CustomElementLifecycleCallbacks.h
|
| diff --git a/Source/core/dom/CustomElementLifecycleCallbacks.h b/Source/core/dom/CustomElementLifecycleCallbacks.h
|
| index 3394859993903f9de8f9e30787bf71fa09b2d1ef..11838feeb5339ab186d53e1d1fc808d8e51fbfa2 100644
|
| --- a/Source/core/dom/CustomElementLifecycleCallbacks.h
|
| +++ b/Source/core/dom/CustomElementLifecycleCallbacks.h
|
| @@ -32,6 +32,7 @@
|
| #define CustomElementLifecycleCallbacks_h
|
|
|
| #include "wtf/RefCounted.h"
|
| +#include "wtf/text/AtomicString.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -41,12 +42,16 @@ class CustomElementLifecycleCallbacks : public RefCounted<CustomElementLifecycle
|
| public:
|
| virtual ~CustomElementLifecycleCallbacks() { }
|
|
|
| - bool hasCreated() const { return m_which == Created; }
|
| + bool hasCreated() const { return m_which & Created; }
|
| virtual void created(Element*) = 0;
|
|
|
| + bool hasAttributeChanged() const { return m_which & AttributeChanged; }
|
| + virtual void attributeChanged(Element*, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue) = 0;
|
| +
|
| enum CallbackType {
|
| - None,
|
| - Created
|
| + None = 0,
|
| + Created = 1 << 0,
|
| + AttributeChanged = 1 << 1
|
| };
|
|
|
| protected:
|
|
|