OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 else if (listenerPrefixedVector) | 204 else if (listenerPrefixedVector) |
205 fireEventListeners(createMatchingPrefixedEvent(event).get(), d, *listene
rPrefixedVector); | 205 fireEventListeners(createMatchingPrefixedEvent(event).get(), d, *listene
rPrefixedVector); |
206 | 206 |
207 if (!prefixedTypeName.isEmpty()) { | 207 if (!prefixedTypeName.isEmpty()) { |
208 ScriptExecutionContext* context = scriptExecutionContext(); | 208 ScriptExecutionContext* context = scriptExecutionContext(); |
209 if (context && context->isDocument()) { | 209 if (context && context->isDocument()) { |
210 Document* document = toDocument(context); | 210 Document* document = toDocument(context); |
211 if (document->domWindow()) { | 211 if (document->domWindow()) { |
212 if (listenerPrefixedVector) | 212 if (listenerPrefixedVector) |
213 if (listenerUnprefixedVector) | 213 if (listenerUnprefixedVector) |
214 FeatureObserver::observe(document->domWindow(), FeatureO
bserver::PrefixedAndUnprefixedTransitionEndEvent); | 214 UseCounter::observe(document->domWindow(), UseCounter::P
refixedAndUnprefixedTransitionEndEvent); |
215 else | 215 else |
216 FeatureObserver::observe(document->domWindow(), FeatureO
bserver::PrefixedTransitionEndEvent); | 216 UseCounter::observe(document->domWindow(), UseCounter::P
refixedTransitionEndEvent); |
217 else if (listenerUnprefixedVector) | 217 else if (listenerUnprefixedVector) |
218 FeatureObserver::observe(document->domWindow(), FeatureObser
ver::UnprefixedTransitionEndEvent); | 218 UseCounter::observe(document->domWindow(), UseCounter::Unpre
fixedTransitionEndEvent); |
219 } | 219 } |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 return !event->defaultPrevented(); | 223 return !event->defaultPrevented(); |
224 } | 224 } |
225 | 225 |
226 void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
enerVector& entry) | 226 void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
enerVector& entry) |
227 { | 227 { |
228 RefPtr<EventTarget> protect = this; | 228 RefPtr<EventTarget> protect = this; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // they have one less listener to invoke. | 295 // they have one less listener to invoke. |
296 if (d->firingEventIterators) { | 296 if (d->firingEventIterators) { |
297 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { | 297 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { |
298 d->firingEventIterators->at(i).iterator = 0; | 298 d->firingEventIterators->at(i).iterator = 0; |
299 d->firingEventIterators->at(i).end = 0; | 299 d->firingEventIterators->at(i).end = 0; |
300 } | 300 } |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 } // namespace WebCore | 304 } // namespace WebCore |
OLD | NEW |