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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 static PassRefPtr<WebKitMutationObserver> create(PassRefPtr<MutationCallback
>); | 76 static PassRefPtr<WebKitMutationObserver> create(PassRefPtr<MutationCallback
>); |
77 static void deliverAllMutations(); | 77 static void deliverAllMutations(); |
78 | 78 |
79 ~WebKitMutationObserver(); | 79 ~WebKitMutationObserver(); |
80 | 80 |
81 void observe(Node*, MutationObserverOptions, const HashSet<AtomicString>& at
tributeFilter, ExceptionCode&); | 81 void observe(Node*, MutationObserverOptions, const HashSet<AtomicString>& at
tributeFilter, ExceptionCode&); |
82 void disconnect(); | 82 void disconnect(); |
83 void observationStarted(MutationObserverRegistration*); | 83 void observationStarted(MutationObserverRegistration*); |
84 void observationEnded(MutationObserverRegistration*); | 84 void observationEnded(MutationObserverRegistration*); |
85 void enqueueMutationRecord(PassRefPtr<MutationRecord>); | 85 void enqueueMutationRecord(PassRefPtr<MutationRecord>); |
| 86 void setHasTransientRegistration(); |
86 | 87 |
87 private: | 88 private: |
88 struct ObserverLessThan; | 89 struct ObserverLessThan; |
89 | 90 |
90 WebKitMutationObserver(PassRefPtr<MutationCallback>); | 91 WebKitMutationObserver(PassRefPtr<MutationCallback>); |
91 void deliver(); | 92 void deliver(); |
92 | 93 |
93 static bool validateOptions(MutationObserverOptions); | 94 static bool validateOptions(MutationObserverOptions); |
94 | 95 |
95 RefPtr<MutationCallback> m_callback; | 96 RefPtr<MutationCallback> m_callback; |
96 Vector<RefPtr<MutationRecord> > m_records; | 97 Vector<RefPtr<MutationRecord> > m_records; |
97 HashSet<MutationObserverRegistration*> m_registrations; | 98 HashSet<MutationObserverRegistration*> m_registrations; |
98 unsigned m_priority; | 99 unsigned m_priority; |
99 }; | 100 }; |
100 | 101 |
101 } | 102 } |
102 | 103 |
103 #endif // ENABLE(MUTATION_OBSERVERS) | 104 #endif // ENABLE(MUTATION_OBSERVERS) |
104 | 105 |
105 #endif // WebKitMutationObserver_h | 106 #endif // WebKitMutationObserver_h |
OLD | NEW |