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

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

Issue 24527003: [oilpan] Implement accept methods to trace the class hierarchy of SVGElement and all sub-classes. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 2 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) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // and tryRemoveEventListener() above will fail. Work around that very s eldom problem. 438 // and tryRemoveEventListener() above will fail. Work around that very s eldom problem.
439 EventTargetData* data = shadowTreeElement->eventTargetData(); 439 EventTargetData* data = shadowTreeElement->eventTargetData();
440 ASSERT(data); 440 ASSERT(data);
441 441
442 data->eventListenerMap.removeFirstEventListenerCreatedFromMarkup(eventTy pe); 442 data->eventListenerMap.removeFirstEventListenerCreatedFromMarkup(eventTy pe);
443 } 443 }
444 444
445 return true; 445 return true;
446 } 446 }
447 447
448 void SVGElement::accept(Visitor* visitor) const
449 {
450 StyledElement::accept(visitor);
451 }
452
448 static bool hasLoadListener(Element* element) 453 static bool hasLoadListener(Element* element)
449 { 454 {
450 if (element->hasEventListeners(eventNames().loadEvent)) 455 if (element->hasEventListeners(eventNames().loadEvent))
451 return true; 456 return true;
452 457
453 Handle<Element> current = adoptRawResult(element); 458 Handle<Element> current = adoptRawResult(element);
454 for (current = current->parentOrShadowHostElement(); current; current = curr ent->parentOrShadowHostElement()) { 459 for (current = current->parentOrShadowHostElement(); current; current = curr ent->parentOrShadowHostElement()) {
455 HandleScope scope; 460 HandleScope scope;
456 const EventListenerVector& entry = current->getEventListeners(eventNames ().loadEvent); 461 const EventListenerVector& entry = current->getEventListeners(eventNames ().loadEvent);
457 for (size_t i = 0; i < entry.size(); ++i) { 462 for (size_t i = 0; i < entry.size(); ++i) {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 if (name == classAttr) 747 if (name == classAttr)
743 return isSVGStyledElement(); 748 return isSVGStyledElement();
744 749
745 return animatableAttributes.contains(name); 750 return animatableAttributes.contains(name);
746 } 751 }
747 #endif 752 #endif
748 753
749 } 754 }
750 755
751 #endif // ENABLE(SVG) 756 #endif // ENABLE(SVG)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698