| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef MutationObserverInterestGroup_h | 31 #ifndef MutationObserverInterestGroup_h |
| 32 #define MutationObserverInterestGroup_h | 32 #define MutationObserverInterestGroup_h |
| 33 | 33 |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/MutationObserver.h" | 35 #include "core/dom/MutationObserver.h" |
| 36 #include "core/dom/Node.h" | 36 #include "core/dom/Node.h" |
| 37 #include "core/dom/QualifiedName.h" | 37 #include "core/dom/QualifiedName.h" |
| 38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 39 #include "wtf/HashMap.h" | 39 #include "platform/wtf/HashMap.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class MutationObserverInterestGroup final | 43 class MutationObserverInterestGroup final |
| 44 : public GarbageCollected<MutationObserverInterestGroup> { | 44 : public GarbageCollected<MutationObserverInterestGroup> { |
| 45 public: | 45 public: |
| 46 static MutationObserverInterestGroup* CreateForChildListMutation( | 46 static MutationObserverInterestGroup* CreateForChildListMutation( |
| 47 Node& target) { | 47 Node& target) { |
| 48 if (!target.GetDocument().HasMutationObserversOfType( | 48 if (!target.GetDocument().HasMutationObserversOfType( |
| 49 MutationObserver::kChildList)) | 49 MutationObserver::kChildList)) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 HeapHashMap<Member<MutationObserver>, MutationRecordDeliveryOptions> | 98 HeapHashMap<Member<MutationObserver>, MutationRecordDeliveryOptions> |
| 99 observers_; | 99 observers_; |
| 100 MutationRecordDeliveryOptions old_value_flag_; | 100 MutationRecordDeliveryOptions old_value_flag_; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // MutationObserverInterestGroup_h | 105 #endif // MutationObserverInterestGroup_h |
| OLD | NEW |