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

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

Issue 185413023: Oilpan: move Touch related objects to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid MSVC local class member function restriction Created 6 years, 9 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Touch.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 4949 matching lines...) Expand 10 before | Expand all | Expand 10 after
4960 m_scriptedAnimationController->cancelCallback(id); 4960 m_scriptedAnimationController->cancelCallback(id);
4961 } 4961 }
4962 4962
4963 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime) 4963 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime)
4964 { 4964 {
4965 if (!m_scriptedAnimationController) 4965 if (!m_scriptedAnimationController)
4966 return; 4966 return;
4967 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime); 4967 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime);
4968 } 4968 }
4969 4969
4970 PassRefPtr<Touch> Document::createTouch(DOMWindow* window, EventTarget* target, int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rotationAngle, float force) const 4970 PassRefPtrWillBeRawPtr<Touch> Document::createTouch(DOMWindow* window, EventTarg et* target, int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rotationAngle, float force) const
4971 { 4971 {
4972 // FIXME: It's not clear from the documentation at 4972 // FIXME: It's not clear from the documentation at
4973 // http://developer.apple.com/library/safari/#documentation/UserExperience/R eference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html 4973 // http://developer.apple.com/library/safari/#documentation/UserExperience/R eference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
4974 // when this method should throw and nor is it by inspection of iOS behavior . It would be nice to verify any cases where it throws under iOS 4974 // when this method should throw and nor is it by inspection of iOS behavior . It would be nice to verify any cases where it throws under iOS
4975 // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=4781 9 4975 // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=4781 9
4976 LocalFrame* frame = window ? window->frame() : this->frame(); 4976 LocalFrame* frame = window ? window->frame() : this->frame();
4977 return Touch::create(frame, target, identifier, screenX, screenY, pageX, pag eY, radiusX, radiusY, rotationAngle, force); 4977 return Touch::create(frame, target, identifier, screenX, screenY, pageX, pag eY, radiusX, radiusY, rotationAngle, force);
4978 } 4978 }
4979 4979
4980 PassRefPtr<TouchList> Document::createTouchList(Vector<RefPtr<Touch> >& touches) const 4980 PassRefPtrWillBeRawPtr<TouchList> Document::createTouchList(WillBeHeapVector<Ref PtrWillBeMember<Touch> >& touches) const
4981 { 4981 {
4982 return TouchList::create(touches); 4982 return TouchList::create(touches);
4983 } 4983 }
4984 4984
4985 void Document::didAddTouchEventHandler(Node* handler) 4985 void Document::didAddTouchEventHandler(Node* handler)
4986 { 4986 {
4987 // The node should either be in this document, or be the Document node of a child 4987 // The node should either be in this document, or be the Document node of a child
4988 // of this document. 4988 // of this document.
4989 ASSERT(&handler->document() == this 4989 ASSERT(&handler->document() == this
4990 || (handler->isDocumentNode() && toDocument(handler)->parentDocument() = = this)); 4990 || (handler->isDocumentNode() && toDocument(handler)->parentDocument() = = this));
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
5483 } 5483 }
5484 5484
5485 void Document::invalidateNodeListCaches(const QualifiedName* attrName) 5485 void Document::invalidateNodeListCaches(const QualifiedName* attrName)
5486 { 5486 {
5487 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end( ); 5487 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end( );
5488 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument. begin(); it != end; ++it) 5488 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument. begin(); it != end; ++it)
5489 (*it)->invalidateCache(attrName); 5489 (*it)->invalidateCache(attrName);
5490 } 5490 }
5491 5491
5492 } // namespace WebCore 5492 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Touch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698