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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 3897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3908 event->setTarget(domWindow()); | 3908 event->setTarget(domWindow()); |
3909 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release()); | 3909 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release()); |
3910 } | 3910 } |
3911 | 3911 |
3912 Document::EventFactorySet& Document::eventFactories() | 3912 Document::EventFactorySet& Document::eventFactories() |
3913 { | 3913 { |
3914 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); | 3914 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); |
3915 return s_eventFactory; | 3915 return s_eventFactory; |
3916 } | 3916 } |
3917 | 3917 |
3918 void Document::registerEventFactory(EventFactoryBase* eventFactory) | 3918 void Document::registerEventFactory(PassOwnPtr<EventFactoryBase> eventFactory) |
3919 { | 3919 { |
3920 ASSERT(!eventFactories().contains(eventFactory)); | 3920 ASSERT(!eventFactories().contains(eventFactory.get())); |
3921 eventFactories().add(eventFactory); | 3921 eventFactories().add(eventFactory); |
3922 } | 3922 } |
3923 | 3923 |
3924 PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc
eptionState& exceptionState) | 3924 PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc
eptionState& exceptionState) |
3925 { | 3925 { |
3926 RefPtrWillBeRawPtr<Event> event = nullptr; | 3926 RefPtrWillBeRawPtr<Event> event = nullptr; |
3927 for (EventFactorySet::const_iterator it = eventFactories().begin(); it != ev
entFactories().end(); ++it) { | 3927 for (EventFactorySet::const_iterator it = eventFactories().begin(); it != ev
entFactories().end(); ++it) { |
3928 event = (*it)->create(eventType); | 3928 event = (*it)->create(eventType); |
3929 if (event) | 3929 if (event) |
3930 return event.release(); | 3930 return event.release(); |
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5833 visitor->trace(m_compositorPendingAnimations); | 5833 visitor->trace(m_compositorPendingAnimations); |
5834 visitor->trace(m_contextDocument); | 5834 visitor->trace(m_contextDocument); |
5835 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); | 5835 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); |
5836 DocumentSupplementable::trace(visitor); | 5836 DocumentSupplementable::trace(visitor); |
5837 TreeScope::trace(visitor); | 5837 TreeScope::trace(visitor); |
5838 ContainerNode::trace(visitor); | 5838 ContainerNode::trace(visitor); |
5839 ExecutionContext::trace(visitor); | 5839 ExecutionContext::trace(visitor); |
5840 } | 5840 } |
5841 | 5841 |
5842 } // namespace WebCore | 5842 } // namespace WebCore |
OLD | NEW |