OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 void unregister(); | 66 void unregister(); |
67 | 67 |
68 bool shouldReceiveMutationFrom(Node&, | 68 bool shouldReceiveMutationFrom(Node&, |
69 MutationObserver::MutationType, | 69 MutationObserver::MutationType, |
70 const QualifiedName* attributeName) const; | 70 const QualifiedName* attributeName) const; |
71 bool isSubtree() const { return m_options & MutationObserver::Subtree; } | 71 bool isSubtree() const { return m_options & MutationObserver::Subtree; } |
72 | 72 |
73 MutationObserver& observer() const { return *m_observer; } | 73 MutationObserver& observer() const { return *m_observer; } |
74 MutationRecordDeliveryOptions deliveryOptions() const { | 74 MutationRecordDeliveryOptions deliveryOptions() const { |
75 return m_options & (MutationObserver::AttributeOldValue | | 75 return m_options & |
76 MutationObserver::CharacterDataOldValue); | 76 (MutationObserver::AttributeOldValue | |
| 77 MutationObserver::CharacterDataOldValue); |
77 } | 78 } |
78 MutationObserverOptions mutationTypes() const { | 79 MutationObserverOptions mutationTypes() const { |
79 return m_options & MutationObserver::AllMutationTypes; | 80 return m_options & MutationObserver::AllMutationTypes; |
80 } | 81 } |
81 | 82 |
82 void addRegistrationNodesToSet(HeapHashSet<Member<Node>>&) const; | 83 void addRegistrationNodesToSet(HeapHashSet<Member<Node>>&) const; |
83 | 84 |
84 void dispose(); | 85 void dispose(); |
85 | 86 |
86 DECLARE_TRACE(); | 87 DECLARE_TRACE(); |
(...skipping 11 matching lines...) Expand all Loading... |
98 typedef HeapHashSet<Member<Node>> NodeHashSet; | 99 typedef HeapHashSet<Member<Node>> NodeHashSet; |
99 Member<NodeHashSet> m_transientRegistrationNodes; | 100 Member<NodeHashSet> m_transientRegistrationNodes; |
100 | 101 |
101 MutationObserverOptions m_options; | 102 MutationObserverOptions m_options; |
102 HashSet<AtomicString> m_attributeFilter; | 103 HashSet<AtomicString> m_attributeFilter; |
103 }; | 104 }; |
104 | 105 |
105 } // namespace blink | 106 } // namespace blink |
106 | 107 |
107 #endif // MutationObserverRegistration_h | 108 #endif // MutationObserverRegistration_h |
OLD | NEW |