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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 else if (listenerPrefixedVector) | 205 else if (listenerPrefixedVector) |
206 fireEventListeners(createMatchingPrefixedEvent(event).get(), d, *listene
rPrefixedVector); | 206 fireEventListeners(createMatchingPrefixedEvent(event).get(), d, *listene
rPrefixedVector); |
207 | 207 |
208 if (!prefixedTypeName.isEmpty()) { | 208 if (!prefixedTypeName.isEmpty()) { |
209 ScriptExecutionContext* context = scriptExecutionContext(); | 209 ScriptExecutionContext* context = scriptExecutionContext(); |
210 if (context && context->isDocument()) { | 210 if (context && context->isDocument()) { |
211 Document* document = toDocument(context); | 211 Document* document = toDocument(context); |
212 if (document->domWindow()) { | 212 if (document->domWindow()) { |
213 if (listenerPrefixedVector) | 213 if (listenerPrefixedVector) |
214 if (listenerUnprefixedVector) | 214 if (listenerUnprefixedVector) |
215 UseCounter::observe(document->domWindow(), UseCounter::P
refixedAndUnprefixedTransitionEndEvent); | 215 UseCounter::count(document->domWindow(), UseCounter::Pre
fixedAndUnprefixedTransitionEndEvent); |
216 else | 216 else |
217 UseCounter::observe(document->domWindow(), UseCounter::P
refixedTransitionEndEvent); | 217 UseCounter::count(document->domWindow(), UseCounter::Pre
fixedTransitionEndEvent); |
218 else if (listenerUnprefixedVector) | 218 else if (listenerUnprefixedVector) |
219 UseCounter::observe(document->domWindow(), UseCounter::Unpre
fixedTransitionEndEvent); | 219 UseCounter::count(document->domWindow(), UseCounter::Unprefi
xedTransitionEndEvent); |
220 } | 220 } |
221 } | 221 } |
222 } | 222 } |
223 | 223 |
224 return !event->defaultPrevented(); | 224 return !event->defaultPrevented(); |
225 } | 225 } |
226 | 226 |
227 void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
enerVector& entry) | 227 void EventTarget::fireEventListeners(Event* event, EventTargetData* d, EventList
enerVector& entry) |
228 { | 228 { |
229 RefPtr<EventTarget> protect = this; | 229 RefPtr<EventTarget> protect = this; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // they have one less listener to invoke. | 296 // they have one less listener to invoke. |
297 if (d->firingEventIterators) { | 297 if (d->firingEventIterators) { |
298 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { | 298 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { |
299 d->firingEventIterators->at(i).iterator = 0; | 299 d->firingEventIterators->at(i).iterator = 0; |
300 d->firingEventIterators->at(i).end = 0; | 300 d->firingEventIterators->at(i).end = 0; |
301 } | 301 } |
302 } | 302 } |
303 } | 303 } |
304 | 304 |
305 } // namespace WebCore | 305 } // namespace WebCore |
OLD | NEW |