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

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: Added 2 binding tests + style 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
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 4945 matching lines...) Expand 10 before | Expand all | Expand 10 after
4956 m_scriptedAnimationController->cancelCallback(id); 4956 m_scriptedAnimationController->cancelCallback(id);
4957 } 4957 }
4958 4958
4959 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime) 4959 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime)
4960 { 4960 {
4961 if (!m_scriptedAnimationController) 4961 if (!m_scriptedAnimationController)
4962 return; 4962 return;
4963 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime); 4963 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime);
4964 } 4964 }
4965 4965
4966 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 4966 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
4967 { 4967 {
4968 // FIXME: It's not clear from the documentation at 4968 // FIXME: It's not clear from the documentation at
4969 // http://developer.apple.com/library/safari/#documentation/UserExperience/R eference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html 4969 // http://developer.apple.com/library/safari/#documentation/UserExperience/R eference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html
4970 // 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 4970 // 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
4971 // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=4781 9 4971 // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=4781 9
4972 LocalFrame* frame = window ? window->frame() : this->frame(); 4972 LocalFrame* frame = window ? window->frame() : this->frame();
4973 return Touch::create(frame, target, identifier, screenX, screenY, pageX, pag eY, radiusX, radiusY, rotationAngle, force); 4973 return Touch::create(frame, target, identifier, screenX, screenY, pageX, pag eY, radiusX, radiusY, rotationAngle, force);
4974 } 4974 }
4975 4975
4976 PassRefPtr<TouchList> Document::createTouchList(Vector<RefPtr<Touch> >& touches) const 4976 PassRefPtrWillBeRawPtr<TouchList> Document::createTouchList(WillBeHeapVector<Ref PtrWillBeMember<Touch> >& touches) const
4977 { 4977 {
4978 return TouchList::create(touches); 4978 return TouchList::create(touches);
4979 } 4979 }
4980 4980
4981 void Document::didAddTouchEventHandler(Node* handler) 4981 void Document::didAddTouchEventHandler(Node* handler)
4982 { 4982 {
4983 // The node should either be in this document, or be the Document node of a child 4983 // The node should either be in this document, or be the Document node of a child
4984 // of this document. 4984 // of this document.
4985 ASSERT(&handler->document() == this 4985 ASSERT(&handler->document() == this
4986 || (handler->isDocumentNode() && toDocument(handler)->parentDocument() = = this)); 4986 || (handler->isDocumentNode() && toDocument(handler)->parentDocument() = = this));
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
5445 void Document::defaultEventHandler(Event* event) 5445 void Document::defaultEventHandler(Event* event)
5446 { 5446 {
5447 if (frame() && frame()->remotePlatformLayer()) { 5447 if (frame() && frame()->remotePlatformLayer()) {
5448 frame()->chromeClient().forwardInputEvent(this, event); 5448 frame()->chromeClient().forwardInputEvent(this, event);
5449 return; 5449 return;
5450 } 5450 }
5451 Node::defaultEventHandler(event); 5451 Node::defaultEventHandler(event);
5452 } 5452 }
5453 5453
5454 } // namespace WebCore 5454 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698