Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: Source/core/dom/Document.cpp

Issue 368533003: Revert of Call media query change listeners asynchronously. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/ScriptedAnimationController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3847 matching lines...) Expand 10 before | Expand all | Expand 10 after
3858 ensureScriptedAnimationController().enqueuePerFrameEvent(scrollEvent.release ()); 3858 ensureScriptedAnimationController().enqueuePerFrameEvent(scrollEvent.release ());
3859 } 3859 }
3860 3860
3861 void Document::enqueueResizeEvent() 3861 void Document::enqueueResizeEvent()
3862 { 3862 {
3863 RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::resize); 3863 RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::resize);
3864 event->setTarget(domWindow()); 3864 event->setTarget(domWindow());
3865 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release()); 3865 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release());
3866 } 3866 }
3867 3867
3868 void Document::enqueueMediaQueryChangeListeners(WillBeHeapVector<RefPtrWillBeMem ber<MediaQueryListListener> >& listeners)
3869 {
3870 ensureScriptedAnimationController().enqueueMediaQueryChangeListeners(listene rs);
3871 }
3872
3873
3874 Document::EventFactorySet& Document::eventFactories() 3868 Document::EventFactorySet& Document::eventFactories()
3875 { 3869 {
3876 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ()); 3870 DEFINE_STATIC_LOCAL(EventFactorySet, s_eventFactory, ());
3877 return s_eventFactory; 3871 return s_eventFactory;
3878 } 3872 }
3879 3873
3880 void Document::registerEventFactory(PassOwnPtr<EventFactoryBase> eventFactory) 3874 void Document::registerEventFactory(PassOwnPtr<EventFactoryBase> eventFactory)
3881 { 3875 {
3882 ASSERT(!eventFactories().contains(eventFactory.get())); 3876 ASSERT(!eventFactories().contains(eventFactory.get()));
3883 eventFactories().add(eventFactory); 3877 eventFactories().add(eventFactory);
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
5822 visitor->trace(m_compositorPendingAnimations); 5816 visitor->trace(m_compositorPendingAnimations);
5823 visitor->trace(m_contextDocument); 5817 visitor->trace(m_contextDocument);
5824 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5818 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5825 DocumentSupplementable::trace(visitor); 5819 DocumentSupplementable::trace(visitor);
5826 TreeScope::trace(visitor); 5820 TreeScope::trace(visitor);
5827 ContainerNode::trace(visitor); 5821 ContainerNode::trace(visitor);
5828 ExecutionContext::trace(visitor); 5822 ExecutionContext::trace(visitor);
5829 } 5823 }
5830 5824
5831 } // namespace WebCore 5825 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/ScriptedAnimationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698