OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/dom/custom/CustomElementAttributeChangedCallbackReaction.h" |
| 6 |
| 7 #include "core/dom/custom/CustomElementDefinition.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 CustomElementAttributeChangedCallbackReaction::CustomElementAttributeChangedCall
backReaction( |
| 12 CustomElementDefinition* definition, |
| 13 const QualifiedName& name, |
| 14 const AtomicString& oldValue, const AtomicString& newValue) |
| 15 : CustomElementReaction(definition) |
| 16 , m_name(name) |
| 17 , m_oldValue(oldValue) |
| 18 , m_newValue(newValue) |
| 19 { |
| 20 DCHECK(definition->hasAttributeChangedCallback(name)); |
| 21 } |
| 22 |
| 23 void CustomElementAttributeChangedCallbackReaction::invoke(Element* element) |
| 24 { |
| 25 m_definition->runAttributeChangedCallback(element, m_name, m_oldValue, m_new
Value); |
| 26 } |
| 27 |
| 28 } // namespace blink |
OLD | NEW |