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

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

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #include "core/editing/FrameSelection.h" 101 #include "core/editing/FrameSelection.h"
102 #include "core/editing/SpellChecker.h" 102 #include "core/editing/SpellChecker.h"
103 #include "core/events/BeforeUnloadEvent.h" 103 #include "core/events/BeforeUnloadEvent.h"
104 #include "core/events/Event.h" 104 #include "core/events/Event.h"
105 #include "core/events/EventFactory.h" 105 #include "core/events/EventFactory.h"
106 #include "core/events/EventListener.h" 106 #include "core/events/EventListener.h"
107 #include "core/events/HashChangeEvent.h" 107 #include "core/events/HashChangeEvent.h"
108 #include "core/events/PageTransitionEvent.h" 108 #include "core/events/PageTransitionEvent.h"
109 #include "core/events/ScopedEventQueue.h" 109 #include "core/events/ScopedEventQueue.h"
110 #include "core/fetch/ResourceFetcher.h" 110 #include "core/fetch/ResourceFetcher.h"
111 #include "core/frame/DOMWindow.h" 111 #include "core/frame/LocalDOMWindow.h"
112 #include "core/frame/FrameConsole.h" 112 #include "core/frame/FrameConsole.h"
113 #include "core/frame/FrameHost.h" 113 #include "core/frame/FrameHost.h"
114 #include "core/frame/FrameView.h" 114 #include "core/frame/FrameView.h"
115 #include "core/frame/History.h" 115 #include "core/frame/History.h"
116 #include "core/frame/LocalFrame.h" 116 #include "core/frame/LocalFrame.h"
117 #include "core/frame/Settings.h" 117 #include "core/frame/Settings.h"
118 #include "core/frame/csp/ContentSecurityPolicy.h" 118 #include "core/frame/csp/ContentSecurityPolicy.h"
119 #include "core/html/DocumentNameCollection.h" 119 #include "core/html/DocumentNameCollection.h"
120 #include "core/html/HTMLAllCollection.h" 120 #include "core/html/HTMLAllCollection.h"
121 #include "core/html/HTMLAnchorElement.h" 121 #include "core/html/HTMLAnchorElement.h"
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 return m_importsController->loaderFor(*this); 845 return m_importsController->loaderFor(*this);
846 } 846 }
847 847
848 bool Document::haveImportsLoaded() const 848 bool Document::haveImportsLoaded() const
849 { 849 {
850 if (!m_importsController) 850 if (!m_importsController)
851 return true; 851 return true;
852 return !m_importsController->shouldBlockScriptExecution(*this); 852 return !m_importsController->shouldBlockScriptExecution(*this);
853 } 853 }
854 854
855 DOMWindow* Document::executingWindow() 855 LocalDOMWindow* Document::executingWindow()
856 { 856 {
857 if (DOMWindow* owningWindow = domWindow()) 857 if (LocalDOMWindow* owningWindow = domWindow())
858 return owningWindow; 858 return owningWindow;
859 if (HTMLImportsController* import = this->importsController()) 859 if (HTMLImportsController* import = this->importsController())
860 return import->master()->domWindow(); 860 return import->master()->domWindow();
861 return 0; 861 return 0;
862 } 862 }
863 863
864 LocalFrame* Document::executingFrame() 864 LocalFrame* Document::executingFrame()
865 { 865 {
866 DOMWindow* window = executingWindow(); 866 LocalDOMWindow* window = executingWindow();
867 if (!window) 867 if (!window)
868 return 0; 868 return 0;
869 return window->frame(); 869 return window->frame();
870 } 870 }
871 871
872 PassRefPtrWillBeRawPtr<DocumentFragment> Document::createDocumentFragment() 872 PassRefPtrWillBeRawPtr<DocumentFragment> Document::createDocumentFragment()
873 { 873 {
874 return DocumentFragment::create(*this); 874 return DocumentFragment::create(*this);
875 } 875 }
876 876
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 // FIXME: This executes media query listeners which runs script, instead the script 1835 // FIXME: This executes media query listeners which runs script, instead the script
1836 // should run at raf timing in ScriptedAnimationController just like resize events. 1836 // should run at raf timing in ScriptedAnimationController just like resize events.
1837 evaluateMediaQueryListIfNeeded(); 1837 evaluateMediaQueryListIfNeeded();
1838 1838
1839 updateUseShadowTreesIfNeeded(); 1839 updateUseShadowTreesIfNeeded();
1840 updateDistributionIfNeeded(); 1840 updateDistributionIfNeeded();
1841 updateStyleInvalidationIfNeeded(); 1841 updateStyleInvalidationIfNeeded();
1842 1842
1843 // FIXME: We should update style on our ancestor chain before proceeding 1843 // FIXME: We should update style on our ancestor chain before proceeding
1844 // however doing so currently causes several tests to crash, as LocalFrame:: setDocument calls Document::attach 1844 // however doing so currently causes several tests to crash, as LocalFrame:: setDocument calls Document::attach
1845 // before setting the DOMWindow on the LocalFrame, or the SecurityOrigin on the document. The attach, in turn 1845 // before setting the LocalDOMWindow on the LocalFrame, or the SecurityOrigi n on the document. The attach, in turn
1846 // resolves style (here) and then when we resolve style on the parent chain, we may end up 1846 // resolves style (here) and then when we resolve style on the parent chain, we may end up
1847 // re-attaching our containing iframe, which when asked HTMLFrameElementBase ::isURLAllowed 1847 // re-attaching our containing iframe, which when asked HTMLFrameElementBase ::isURLAllowed
1848 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin. 1848 // hits a null-dereference due to security code always assuming the document has a SecurityOrigin.
1849 1849
1850 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) 1850 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits())
1851 m_styleEngine->setUsesRemUnit(true); 1851 m_styleEngine->setUsesRemUnit(true);
1852 1852
1853 updateStyle(change); 1853 updateStyle(change);
1854 1854
1855 // As a result of the style recalculation, the currently hovered element mig ht have been 1855 // As a result of the style recalculation, the currently hovered element mig ht have been
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
2202 stopActiveDOMObjects(); 2202 stopActiveDOMObjects();
2203 2203
2204 // FIXME: consider using ActiveDOMObject. 2204 // FIXME: consider using ActiveDOMObject.
2205 if (m_scriptedAnimationController) 2205 if (m_scriptedAnimationController)
2206 m_scriptedAnimationController->clearDocumentPointer(); 2206 m_scriptedAnimationController->clearDocumentPointer();
2207 m_scriptedAnimationController.clear(); 2207 m_scriptedAnimationController.clear();
2208 2208
2209 if (svgExtensions()) 2209 if (svgExtensions())
2210 accessSVGExtensions().pauseAnimations(); 2210 accessSVGExtensions().pauseAnimations();
2211 2211
2212 // FIXME: This shouldn't be needed once DOMWindow becomes ExecutionContext. 2212 // FIXME: This shouldn't be needed once LocalDOMWindow becomes ExecutionCont ext.
2213 if (m_domWindow) 2213 if (m_domWindow)
2214 m_domWindow->clearEventQueue(); 2214 m_domWindow->clearEventQueue();
2215 2215
2216 if (m_renderView) 2216 if (m_renderView)
2217 m_renderView->setIsInWindow(false); 2217 m_renderView->setIsInWindow(false);
2218 2218
2219 if (m_frame) { 2219 if (m_frame) {
2220 FrameView* view = m_frame->view(); 2220 FrameView* view = m_frame->view();
2221 if (view) 2221 if (view)
2222 view->detachCustomScrollbars(); 2222 view->detachCustomScrollbars();
(...skipping 19 matching lines...) Expand all
2242 // callers of Document::detach(). 2242 // callers of Document::detach().
2243 m_frame = 0; 2243 m_frame = 0;
2244 2244
2245 if (m_mediaQueryMatcher) 2245 if (m_mediaQueryMatcher)
2246 m_mediaQueryMatcher->documentDestroyed(); 2246 m_mediaQueryMatcher->documentDestroyed();
2247 2247
2248 lifecycleNotifier().notifyDocumentWasDetached(); 2248 lifecycleNotifier().notifyDocumentWasDetached();
2249 m_lifecycle.advanceTo(DocumentLifecycle::Stopped); 2249 m_lifecycle.advanceTo(DocumentLifecycle::Stopped);
2250 #if ENABLE(OILPAN) 2250 #if ENABLE(OILPAN)
2251 // This mirrors the clearing of the document object's touch 2251 // This mirrors the clearing of the document object's touch
2252 // handlers that happens when the DOMWindow is destructed in a 2252 // handlers that happens when the LocalDOMWindow is destructed in a
2253 // non-Oilpan setting (DOMWindow::removeAllEventListeners()), 2253 // non-Oilpan setting (LocalDOMWindow::removeAllEventListeners()),
2254 // except that it is now done during detach instead. 2254 // except that it is now done during detach instead.
2255 didClearTouchEventHandlers(this); 2255 didClearTouchEventHandlers(this);
2256 2256
2257 // Done with the window, explicitly clear to hasten its 2257 // Done with the window, explicitly clear to hasten its
2258 // destruction. 2258 // destruction.
2259 clearDOMWindow(); 2259 clearDOMWindow();
2260 #endif 2260 #endif
2261 } 2261 }
2262 2262
2263 void Document::prepareForDestruction() 2263 void Document::prepareForDestruction()
2264 { 2264 {
2265 m_markers->prepareForDestruction(); 2265 m_markers->prepareForDestruction();
2266 disconnectDescendantFrames(); 2266 disconnectDescendantFrames();
2267 2267
2268 // The process of disconnecting descendant frames could have already detache d us. 2268 // The process of disconnecting descendant frames could have already detache d us.
2269 if (!isActive()) 2269 if (!isActive())
2270 return; 2270 return;
2271 2271
2272 if (DOMWindow* window = this->domWindow()) 2272 if (LocalDOMWindow* window = this->domWindow())
2273 window->willDetachDocumentFromFrame(); 2273 window->willDetachDocumentFromFrame();
2274 detach(); 2274 detach();
2275 } 2275 }
2276 2276
2277 void Document::removeAllEventListeners() 2277 void Document::removeAllEventListeners()
2278 { 2278 {
2279 ContainerNode::removeAllEventListeners(); 2279 ContainerNode::removeAllEventListeners();
2280 2280
2281 if (DOMWindow* domWindow = this->domWindow()) 2281 if (LocalDOMWindow* domWindow = this->domWindow())
2282 domWindow->removeAllEventListeners(); 2282 domWindow->removeAllEventListeners();
2283 } 2283 }
2284 2284
2285 void Document::clearAXObjectCache() 2285 void Document::clearAXObjectCache()
2286 { 2286 {
2287 ASSERT(topDocument() == this); 2287 ASSERT(topDocument() == this);
2288 // Clear the cache member variable before calling delete because attempts 2288 // Clear the cache member variable before calling delete because attempts
2289 // are made to access it during destruction. 2289 // are made to access it during destruction.
2290 m_axObjectCache.clear(); 2290 m_axObjectCache.clear();
2291 } 2291 }
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 bool wasLocationChangePending = frame() && frame()->navigationScheduler().lo cationChangePending(); 2534 bool wasLocationChangePending = frame() && frame()->navigationScheduler().lo cationChangePending();
2535 bool doload = !parsing() && m_parser && !processingLoadEvent() && !wasLocati onChangePending; 2535 bool doload = !parsing() && m_parser && !processingLoadEvent() && !wasLocati onChangePending;
2536 2536
2537 // If the load was blocked because of a pending location change and the loca tion change triggers a same document 2537 // If the load was blocked because of a pending location change and the loca tion change triggers a same document
2538 // navigation, don't fire load events after the same document navigation com pletes (unless there's an explicit open). 2538 // navigation, don't fire load events after the same document navigation com pletes (unless there's an explicit open).
2539 m_loadEventProgress = LoadEventTried; 2539 m_loadEventProgress = LoadEventTried;
2540 2540
2541 if (!doload) 2541 if (!doload)
2542 return; 2542 return;
2543 2543
2544 // The call to dispatchWindowLoadEvent can detach the DOMWindow and cause it (and its 2544 // The call to dispatchWindowLoadEvent can detach the LocalDOMWindow and cau se it (and its
2545 // attached Document) to be destroyed. 2545 // attached Document) to be destroyed.
2546 RefPtrWillBeRawPtr<DOMWindow> protectedWindow(this->domWindow()); 2546 RefPtrWillBeRawPtr<LocalDOMWindow> protectedWindow(this->domWindow());
2547 2547
2548 m_loadEventProgress = LoadEventInProgress; 2548 m_loadEventProgress = LoadEventInProgress;
2549 2549
2550 ScriptableDocumentParser* parser = scriptableDocumentParser(); 2550 ScriptableDocumentParser* parser = scriptableDocumentParser();
2551 m_wellFormed = parser && parser->wellFormed(); 2551 m_wellFormed = parser && parser->wellFormed();
2552 2552
2553 // We have to clear the parser, in case someone document.write()s from the 2553 // We have to clear the parser, in case someone document.write()s from the
2554 // onLoad event handler, as in Radar 3206524. 2554 // onLoad event handler, as in Radar 3206524.
2555 detachParser(); 2555 detachParser();
2556 2556
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 RefPtrWillBeRawPtr<Document> protect(this); 2665 RefPtrWillBeRawPtr<Document> protect(this);
2666 if (m_parser) 2666 if (m_parser)
2667 m_parser->stopParsing(); 2667 m_parser->stopParsing();
2668 2668
2669 if (m_loadEventProgress >= LoadEventTried && m_loadEventProgress <= UnloadEv entInProgress) { 2669 if (m_loadEventProgress >= LoadEventTried && m_loadEventProgress <= UnloadEv entInProgress) {
2670 Element* currentFocusedElement = focusedElement(); 2670 Element* currentFocusedElement = focusedElement();
2671 if (isHTMLInputElement(currentFocusedElement)) 2671 if (isHTMLInputElement(currentFocusedElement))
2672 toHTMLInputElement(*currentFocusedElement).endEditing(); 2672 toHTMLInputElement(*currentFocusedElement).endEditing();
2673 if (m_loadEventProgress < PageHideInProgress) { 2673 if (m_loadEventProgress < PageHideInProgress) {
2674 m_loadEventProgress = PageHideInProgress; 2674 m_loadEventProgress = PageHideInProgress;
2675 if (DOMWindow* window = domWindow()) 2675 if (LocalDOMWindow* window = domWindow())
2676 window->dispatchEvent(PageTransitionEvent::create(EventTypeNames ::pagehide, false), this); 2676 window->dispatchEvent(PageTransitionEvent::create(EventTypeNames ::pagehide, false), this);
2677 if (!m_frame) 2677 if (!m_frame)
2678 return; 2678 return;
2679 2679
2680 // The DocumentLoader (and thus its DocumentLoadTiming) might get de stroyed 2680 // The DocumentLoader (and thus its DocumentLoadTiming) might get de stroyed
2681 // while dispatching the event, so protect it to prevent writing the end 2681 // while dispatching the event, so protect it to prevent writing the end
2682 // time into freed memory. 2682 // time into freed memory.
2683 RefPtr<DocumentLoader> documentLoader = m_frame->loader().provision alDocumentLoader(); 2683 RefPtr<DocumentLoader> documentLoader = m_frame->loader().provision alDocumentLoader();
2684 m_loadEventProgress = UnloadEventInProgress; 2684 m_loadEventProgress = UnloadEventInProgress;
2685 RefPtrWillBeRawPtr<Event> unloadEvent(Event::create(EventTypeNames:: unload)); 2685 RefPtrWillBeRawPtr<Event> unloadEvent(Event::create(EventTypeNames:: unload));
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3858 } 3858 }
3859 3859
3860 if (m_frame) 3860 if (m_frame)
3861 m_frame->selection().didSplitTextNode(oldNode); 3861 m_frame->selection().didSplitTextNode(oldNode);
3862 3862
3863 // FIXME: This should update markers for spelling and grammar checking. 3863 // FIXME: This should update markers for spelling and grammar checking.
3864 } 3864 }
3865 3865
3866 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa ssRefPtr<EventListener> listener) 3866 void Document::setWindowAttributeEventListener(const AtomicString& eventType, Pa ssRefPtr<EventListener> listener)
3867 { 3867 {
3868 DOMWindow* domWindow = this->domWindow(); 3868 LocalDOMWindow* domWindow = this->domWindow();
3869 if (!domWindow) 3869 if (!domWindow)
3870 return; 3870 return;
3871 domWindow->setAttributeEventListener(eventType, listener); 3871 domWindow->setAttributeEventListener(eventType, listener);
3872 } 3872 }
3873 3873
3874 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve ntType) 3874 EventListener* Document::getWindowAttributeEventListener(const AtomicString& eve ntType)
3875 { 3875 {
3876 DOMWindow* domWindow = this->domWindow(); 3876 LocalDOMWindow* domWindow = this->domWindow();
3877 if (!domWindow) 3877 if (!domWindow)
3878 return 0; 3878 return 0;
3879 return domWindow->getAttributeEventListener(eventType); 3879 return domWindow->getAttributeEventListener(eventType);
3880 } 3880 }
3881 3881
3882 EventQueue* Document::eventQueue() const 3882 EventQueue* Document::eventQueue() const
3883 { 3883 {
3884 if (!m_domWindow) 3884 if (!m_domWindow)
3885 return 0; 3885 return 0;
3886 return m_domWindow->eventQueue(); 3886 return m_domWindow->eventQueue();
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
5048 { 5048 {
5049 if (!isContextThread()) { 5049 if (!isContextThread()) {
5050 m_taskRunner->postTask(AddConsoleMessageTask::create(source, level, mess age)); 5050 m_taskRunner->postTask(AddConsoleMessageTask::create(source, level, mess age));
5051 return; 5051 return;
5052 } 5052 }
5053 5053
5054 if (m_frame) 5054 if (m_frame)
5055 m_frame->console().addMessage(source, level, message, String(), 0, 0, nu llptr, 0, requestIdentifier); 5055 m_frame->console().addMessage(source, level, message, String(), 0, 0, nu llptr, 0, requestIdentifier);
5056 } 5056 }
5057 5057
5058 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-DOMWin dow migration. 5058 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD OMWindow migration.
5059 void Document::postTask(PassOwnPtr<ExecutionContextTask> task) 5059 void Document::postTask(PassOwnPtr<ExecutionContextTask> task)
5060 { 5060 {
5061 m_taskRunner->postTask(task); 5061 m_taskRunner->postTask(task);
5062 } 5062 }
5063 5063
5064 void Document::tasksWereSuspended() 5064 void Document::tasksWereSuspended()
5065 { 5065 {
5066 scriptRunner()->suspend(); 5066 scriptRunner()->suspend();
5067 5067
5068 if (m_parser) 5068 if (m_parser)
5069 m_parser->suspendScheduledTasks(); 5069 m_parser->suspendScheduledTasks();
5070 if (m_scriptedAnimationController) 5070 if (m_scriptedAnimationController)
5071 m_scriptedAnimationController->suspend(); 5071 m_scriptedAnimationController->suspend();
5072 } 5072 }
5073 5073
5074 void Document::tasksWereResumed() 5074 void Document::tasksWereResumed()
5075 { 5075 {
5076 scriptRunner()->resume(); 5076 scriptRunner()->resume();
5077 5077
5078 if (m_parser) 5078 if (m_parser)
5079 m_parser->resumeScheduledTasks(); 5079 m_parser->resumeScheduledTasks();
5080 if (m_scriptedAnimationController) 5080 if (m_scriptedAnimationController)
5081 m_scriptedAnimationController->resume(); 5081 m_scriptedAnimationController->resume();
5082 5082
5083 MutationObserver::resumeSuspendedObservers(); 5083 MutationObserver::resumeSuspendedObservers();
5084 } 5084 }
5085 5085
5086 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension() 5086 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension()
5087 // should be moved to DOMWindow once it inherits ExecutionContext 5087 // should be moved to LocalDOMWindow once it inherits ExecutionContext
5088 void Document::suspendScheduledTasks() 5088 void Document::suspendScheduledTasks()
5089 { 5089 {
5090 ExecutionContext::suspendScheduledTasks(); 5090 ExecutionContext::suspendScheduledTasks();
5091 m_taskRunner->suspend(); 5091 m_taskRunner->suspend();
5092 } 5092 }
5093 5093
5094 void Document::resumeScheduledTasks() 5094 void Document::resumeScheduledTasks()
5095 { 5095 {
5096 ExecutionContext::resumeScheduledTasks(); 5096 ExecutionContext::resumeScheduledTasks();
5097 m_taskRunner->resume(); 5097 m_taskRunner->resume();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 m_scriptedAnimationController->cancelCallback(id); 5231 m_scriptedAnimationController->cancelCallback(id);
5232 } 5232 }
5233 5233
5234 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime) 5234 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime)
5235 { 5235 {
5236 if (!m_scriptedAnimationController) 5236 if (!m_scriptedAnimationController)
5237 return; 5237 return;
5238 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime); 5238 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime);
5239 } 5239 }
5240 5240
5241 PassRefPtrWillBeRawPtr<Touch> Document::createTouch(DOMWindow* window, EventTarg et* target, int identifier, double pageX, double pageY, double screenX, double s creenY, double radiusX, double radiusY, float rotationAngle, float force) const 5241 PassRefPtrWillBeRawPtr<Touch> Document::createTouch(LocalDOMWindow* window, Even tTarget* target, int identifier, double pageX, double pageY, double screenX, dou ble screenY, double radiusX, double radiusY, float rotationAngle, float force) c onst
5242 { 5242 {
5243 // Match behavior from when these types were integers, and avoid surprises f rom someone explicitly 5243 // Match behavior from when these types were integers, and avoid surprises f rom someone explicitly
5244 // passing Infinity/NaN. 5244 // passing Infinity/NaN.
5245 if (!std::isfinite(pageX)) 5245 if (!std::isfinite(pageX))
5246 pageX = 0; 5246 pageX = 0;
5247 if (!std::isfinite(pageY)) 5247 if (!std::isfinite(pageY))
5248 pageY = 0; 5248 pageY = 0;
5249 if (!std::isfinite(screenX)) 5249 if (!std::isfinite(screenX))
5250 screenX = 0; 5250 screenX = 0;
5251 if (!std::isfinite(screenY)) 5251 if (!std::isfinite(screenY))
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
5848 visitor->trace(m_compositorPendingAnimations); 5848 visitor->trace(m_compositorPendingAnimations);
5849 visitor->trace(m_contextDocument); 5849 visitor->trace(m_contextDocument);
5850 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5850 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5851 DocumentSupplementable::trace(visitor); 5851 DocumentSupplementable::trace(visitor);
5852 TreeScope::trace(visitor); 5852 TreeScope::trace(visitor);
5853 ContainerNode::trace(visitor); 5853 ContainerNode::trace(visitor);
5854 ExecutionContext::trace(visitor); 5854 ExecutionContext::trace(visitor);
5855 } 5855 }
5856 5856
5857 } // namespace WebCore 5857 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698