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

Side by Side Diff: third_party/WebKit/Source/core/dom/SynchronousMutationNotifier.cpp

Issue 2650353002: Revert of Introduce SynchronousMutationObserver::didChangeAttribute() (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/SynchronousMutationNotifier.h" 5 #include "core/dom/SynchronousMutationNotifier.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/SynchronousMutationObserver.h" 8 #include "core/dom/SynchronousMutationObserver.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 SynchronousMutationNotifier::SynchronousMutationNotifier() = default; 12 SynchronousMutationNotifier::SynchronousMutationNotifier() = default;
13 13
14 void SynchronousMutationNotifier::notifyChangeAttribute(
15 const Element& element) {
16 for (SynchronousMutationObserver* observer : m_observers)
17 observer->didChangeAttribute(element);
18 }
19
20 void SynchronousMutationNotifier::notifyChangeChildren( 14 void SynchronousMutationNotifier::notifyChangeChildren(
21 const ContainerNode& container) { 15 const ContainerNode& container) {
22 for (SynchronousMutationObserver* observer : m_observers) 16 for (SynchronousMutationObserver* observer : m_observers)
23 observer->didChangeChildren(container); 17 observer->didChangeChildren(container);
24 } 18 }
25 19
26 void SynchronousMutationNotifier::notifyMergeTextNodes( 20 void SynchronousMutationNotifier::notifyMergeTextNodes(
27 const Text& node, 21 const Text& node,
28 const NodeWithIndex& nodeToBeRemovedWithIndex, 22 const NodeWithIndex& nodeToBeRemovedWithIndex,
29 unsigned oldLength) { 23 unsigned oldLength) {
(...skipping 28 matching lines...) Expand all
58 for (SynchronousMutationObserver* observer : m_observers) 52 for (SynchronousMutationObserver* observer : m_observers)
59 observer->nodeChildrenWillBeRemoved(container); 53 observer->nodeChildrenWillBeRemoved(container);
60 } 54 }
61 55
62 void SynchronousMutationNotifier::notifyNodeWillBeRemoved(Node& node) { 56 void SynchronousMutationNotifier::notifyNodeWillBeRemoved(Node& node) {
63 for (SynchronousMutationObserver* observer : m_observers) 57 for (SynchronousMutationObserver* observer : m_observers)
64 observer->nodeWillBeRemoved(node); 58 observer->nodeWillBeRemoved(node);
65 } 59 }
66 60
67 } // namespace blink 61 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698