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

Unified Diff: Source/core/dom/custom/CustomElementScheduler.cpp

Issue 494133002: Append "Callback" to each value of enum CallbackType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/custom/CustomElementLifecycleCallbacks.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/custom/CustomElementScheduler.cpp
diff --git a/Source/core/dom/custom/CustomElementScheduler.cpp b/Source/core/dom/custom/CustomElementScheduler.cpp
index ee5b4aec9a08c9a95ed858f21fb1003da81378fd..e4c10f3ffa63cfc903e19fb91705906d27e0aaf6 100644
--- a/Source/core/dom/custom/CustomElementScheduler.cpp
+++ b/Source/core/dom/custom/CustomElementScheduler.cpp
@@ -51,7 +51,7 @@ DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler)
void CustomElementScheduler::scheduleCallback(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, PassRefPtrWillBeRawPtr<Element> element, CustomElementLifecycleCallbacks::CallbackType type)
{
- ASSERT(type != CustomElementLifecycleCallbacks::AttributeChanged);
+ ASSERT(type != CustomElementLifecycleCallbacks::AttributeChangedCallback);
if (!callbacks->hasCallback(type))
return;
@@ -62,7 +62,7 @@ void CustomElementScheduler::scheduleCallback(PassRefPtr<CustomElementLifecycleC
void CustomElementScheduler::scheduleAttributeChangedCallback(PassRefPtr<CustomElementLifecycleCallbacks> callbacks, PassRefPtrWillBeRawPtr<Element> element, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue)
{
- if (!callbacks->hasCallback(CustomElementLifecycleCallbacks::AttributeChanged))
+ if (!callbacks->hasCallback(CustomElementLifecycleCallbacks::AttributeChangedCallback))
return;
CustomElementCallbackQueue& queue = instance().schedule(element);
« no previous file with comments | « Source/core/dom/custom/CustomElementLifecycleCallbacks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698