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

Side by Side Diff: Source/core/svg/SVGElementInstance.cpp

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 Node* SVGElementInstance::toNode() 225 Node* SVGElementInstance::toNode()
226 { 226 {
227 return shadowTreeElement(); 227 return shadowTreeElement();
228 } 228 }
229 229
230 Document* SVGElementInstance::ownerDocument() const 230 Document* SVGElementInstance::ownerDocument() const
231 { 231 {
232 return m_element ? m_element->ownerDocument() : 0; 232 return m_element ? m_element->ownerDocument() : 0;
233 } 233 }
234 234
235 bool SVGElementInstance::dispatchEvent(PassRefPtr<Event> event) 235 bool SVGElementInstance::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event)
236 { 236 {
237 SVGElement* element = shadowTreeElement(); 237 SVGElement* element = shadowTreeElement();
238 if (!element) 238 if (!element)
239 return false; 239 return false;
240 240
241 return element->dispatchEvent(event); 241 return element->dispatchEvent(event);
242 } 242 }
243 243
244 EventTargetData* SVGElementInstance::eventTargetData() 244 EventTargetData* SVGElementInstance::eventTargetData()
245 { 245 {
(...skipping 16 matching lines...) Expand all
262 m_targetElement->setInstanceUpdatesBlocked(true); 262 m_targetElement->setInstanceUpdatesBlocked(true);
263 } 263 }
264 264
265 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker() 265 SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker()
266 { 266 {
267 if (m_targetElement) 267 if (m_targetElement)
268 m_targetElement->setInstanceUpdatesBlocked(false); 268 m_targetElement->setInstanceUpdatesBlocked(false);
269 } 269 }
270 270
271 } 271 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698