| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 #include "core/editing/spellcheck/SpellChecker.h" | 120 #include "core/editing/spellcheck/SpellChecker.h" |
| 121 #include "core/events/BeforeUnloadEvent.h" | 121 #include "core/events/BeforeUnloadEvent.h" |
| 122 #include "core/events/Event.h" | 122 #include "core/events/Event.h" |
| 123 #include "core/events/EventFactory.h" | 123 #include "core/events/EventFactory.h" |
| 124 #include "core/events/EventListener.h" | 124 #include "core/events/EventListener.h" |
| 125 #include "core/events/HashChangeEvent.h" | 125 #include "core/events/HashChangeEvent.h" |
| 126 #include "core/events/PageTransitionEvent.h" | 126 #include "core/events/PageTransitionEvent.h" |
| 127 #include "core/events/ScopedEventQueue.h" | 127 #include "core/events/ScopedEventQueue.h" |
| 128 #include "core/fetch/ResourceFetcher.h" | 128 #include "core/fetch/ResourceFetcher.h" |
| 129 #include "core/frame/DOMTimer.h" | 129 #include "core/frame/DOMTimer.h" |
| 130 #include "core/frame/DOMVisualViewport.h" |
| 130 #include "core/frame/EventHandlerRegistry.h" | 131 #include "core/frame/EventHandlerRegistry.h" |
| 131 #include "core/frame/FrameConsole.h" | 132 #include "core/frame/FrameConsole.h" |
| 132 #include "core/frame/FrameHost.h" | 133 #include "core/frame/FrameHost.h" |
| 133 #include "core/frame/FrameView.h" | 134 #include "core/frame/FrameView.h" |
| 134 #include "core/frame/History.h" | 135 #include "core/frame/History.h" |
| 135 #include "core/frame/HostsUsingFeatures.h" | 136 #include "core/frame/HostsUsingFeatures.h" |
| 136 #include "core/frame/LocalDOMWindow.h" | 137 #include "core/frame/LocalDOMWindow.h" |
| 137 #include "core/frame/LocalFrame.h" | 138 #include "core/frame/LocalFrame.h" |
| 138 #include "core/frame/Settings.h" | 139 #include "core/frame/Settings.h" |
| 139 #include "core/frame/csp/ContentSecurityPolicy.h" | 140 #include "core/frame/csp/ContentSecurityPolicy.h" |
| (...skipping 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3894 Event* event = Event::create(EventTypeNames::resize); | 3895 Event* event = Event::create(EventTypeNames::resize); |
| 3895 event->setTarget(domWindow()); | 3896 event->setTarget(domWindow()); |
| 3896 ensureScriptedAnimationController().enqueuePerFrameEvent(event); | 3897 ensureScriptedAnimationController().enqueuePerFrameEvent(event); |
| 3897 } | 3898 } |
| 3898 | 3899 |
| 3899 void Document::enqueueMediaQueryChangeListeners(HeapVector<Member<MediaQueryList
Listener>>& listeners) | 3900 void Document::enqueueMediaQueryChangeListeners(HeapVector<Member<MediaQueryList
Listener>>& listeners) |
| 3900 { | 3901 { |
| 3901 ensureScriptedAnimationController().enqueueMediaQueryChangeListeners(listene
rs); | 3902 ensureScriptedAnimationController().enqueueMediaQueryChangeListeners(listene
rs); |
| 3902 } | 3903 } |
| 3903 | 3904 |
| 3904 void Document::enqueueVisualViewportChangedEvent() | 3905 void Document::enqueueVisualViewportScrollEvent() |
| 3905 { | 3906 { |
| 3906 Event* event = Event::create(EventTypeNames::visualviewportchanged); | 3907 Event* event = Event::create(EventTypeNames::scroll); |
| 3907 event->setTarget(domWindow()); | 3908 event->setTarget(domWindow()->visualViewport()); |
| 3908 ensureScriptedAnimationController().enqueuePerFrameEvent(event); | 3909 ensureScriptedAnimationController().enqueuePerFrameEvent(event); |
| 3909 } | 3910 } |
| 3910 | 3911 |
| 3912 void Document::enqueueVisualViewportResizeEvent() |
| 3913 { |
| 3914 Event* event = Event::create(EventTypeNames::resize); |
| 3915 event->setTarget(domWindow()->visualViewport()); |
| 3916 ensureScriptedAnimationController().enqueuePerFrameEvent(event); |
| 3917 } |
| 3918 |
| 3911 void Document::dispatchEventsForPrinting() | 3919 void Document::dispatchEventsForPrinting() |
| 3912 { | 3920 { |
| 3913 if (!m_scriptedAnimationController) | 3921 if (!m_scriptedAnimationController) |
| 3914 return; | 3922 return; |
| 3915 m_scriptedAnimationController->dispatchEventsAndCallbacksForPrinting(); | 3923 m_scriptedAnimationController->dispatchEventsAndCallbacksForPrinting(); |
| 3916 } | 3924 } |
| 3917 | 3925 |
| 3918 Document::EventFactorySet& Document::eventFactories() | 3926 Document::EventFactorySet& Document::eventFactories() |
| 3919 { | 3927 { |
| 3920 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); | 3928 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); |
| (...skipping 2088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6009 } | 6017 } |
| 6010 | 6018 |
| 6011 void showLiveDocumentInstances() | 6019 void showLiveDocumentInstances() |
| 6012 { | 6020 { |
| 6013 WeakDocumentSet& set = liveDocumentSet(); | 6021 WeakDocumentSet& set = liveDocumentSet(); |
| 6014 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6022 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6015 for (Document* document : set) | 6023 for (Document* document : set) |
| 6016 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6024 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6017 } | 6025 } |
| 6018 #endif | 6026 #endif |
| OLD | NEW |