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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 } | 320 } |
321 } else if (event->type() == EventTypeNames::unload) { | 321 } else if (event->type() == EventTypeNames::unload) { |
322 if (LocalDOMWindow* executingWindow = this->executingWindow()) | 322 if (LocalDOMWindow* executingWindow = this->executingWindow()) |
323 UseCounter::count(executingWindow->document(), UseCounter::DocumentU
nloadFired); | 323 UseCounter::count(executingWindow->document(), UseCounter::DocumentU
nloadFired); |
324 } else if (event->type() == EventTypeNames::DOMFocusIn || event->type() == E
ventTypeNames::DOMFocusOut) { | 324 } else if (event->type() == EventTypeNames::DOMFocusIn || event->type() == E
ventTypeNames::DOMFocusOut) { |
325 if (LocalDOMWindow* executingWindow = this->executingWindow()) | 325 if (LocalDOMWindow* executingWindow = this->executingWindow()) |
326 UseCounter::count(executingWindow->document(), UseCounter::DOMFocusI
nOutEvent); | 326 UseCounter::count(executingWindow->document(), UseCounter::DOMFocusI
nOutEvent); |
327 } else if (event->type() == EventTypeNames::focusin || event->type() == Even
tTypeNames::focusout) { | 327 } else if (event->type() == EventTypeNames::focusin || event->type() == Even
tTypeNames::focusout) { |
328 if (LocalDOMWindow* executingWindow = this->executingWindow()) | 328 if (LocalDOMWindow* executingWindow = this->executingWindow()) |
329 UseCounter::count(executingWindow->document(), UseCounter::FocusInOu
tEvent); | 329 UseCounter::count(executingWindow->document(), UseCounter::FocusInOu
tEvent); |
| 330 } else if (event->type() == EventTypeNames::textInput) { |
| 331 if (LocalDOMWindow* executingWindow = this->executingWindow()) |
| 332 UseCounter::count(executingWindow->document(), UseCounter::TextInput
Fired); |
330 } | 333 } |
331 | 334 |
332 size_t i = 0; | 335 size_t i = 0; |
333 size_t size = entry.size(); | 336 size_t size = entry.size(); |
334 if (!d->firingEventIterators) | 337 if (!d->firingEventIterators) |
335 d->firingEventIterators = adoptPtr(new FiringEventIteratorVector); | 338 d->firingEventIterators = adoptPtr(new FiringEventIteratorVector); |
336 d->firingEventIterators->append(FiringEventIterator(event->type(), i, size))
; | 339 d->firingEventIterators->append(FiringEventIterator(event->type(), i, size))
; |
337 for ( ; i < size; ++i) { | 340 for ( ; i < size; ++i) { |
338 RegisteredEventListener& registeredListener = entry[i]; | 341 RegisteredEventListener& registeredListener = entry[i]; |
339 if (event->eventPhase() == Event::CAPTURING_PHASE && !registeredListener
.useCapture) | 342 if (event->eventPhase() == Event::CAPTURING_PHASE && !registeredListener
.useCapture) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // they have one less listener to invoke. | 394 // they have one less listener to invoke. |
392 if (d->firingEventIterators) { | 395 if (d->firingEventIterators) { |
393 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { | 396 for (size_t i = 0; i < d->firingEventIterators->size(); ++i) { |
394 d->firingEventIterators->at(i).iterator = 0; | 397 d->firingEventIterators->at(i).iterator = 0; |
395 d->firingEventIterators->at(i).end = 0; | 398 d->firingEventIterators->at(i).end = 0; |
396 } | 399 } |
397 } | 400 } |
398 } | 401 } |
399 | 402 |
400 } // namespace blink | 403 } // namespace blink |
OLD | NEW |