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

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

Issue 18080016: [CSS Regions] Elements in a region should be assignable to a named flow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed failing test (fullscreen issue), added SVG test Created 7 years, 5 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/svg/SVGElement.h ('k') | no next file » | 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) 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 const EventListenerVector& entry = element->getEventListeners(eventNames ().loadEvent); 449 const EventListenerVector& entry = element->getEventListeners(eventNames ().loadEvent);
450 for (size_t i = 0; i < entry.size(); ++i) { 450 for (size_t i = 0; i < entry.size(); ++i) {
451 if (entry[i].useCapture) 451 if (entry[i].useCapture)
452 return true; 452 return true;
453 } 453 }
454 } 454 }
455 455
456 return false; 456 return false;
457 } 457 }
458 458
459 bool SVGElement::shouldMoveToFlowThread(RenderStyle* styleToUse) const
460 {
461 // Allow only svg root elements to be directly collected by a render flow th read.
462 return parentNode() && !parentNode()->isSVGElement() && hasTagName(SVGNames: :svgTag) && Element::shouldMoveToFlowThread(styleToUse);
463 }
464
459 void SVGElement::sendSVGLoadEventIfPossible(bool sendParentLoadEvents) 465 void SVGElement::sendSVGLoadEventIfPossible(bool sendParentLoadEvents)
460 { 466 {
461 RefPtr<SVGElement> currentTarget = this; 467 RefPtr<SVGElement> currentTarget = this;
462 while (currentTarget && currentTarget->haveLoadedRequiredResources()) { 468 while (currentTarget && currentTarget->haveLoadedRequiredResources()) {
463 RefPtr<Element> parent; 469 RefPtr<Element> parent;
464 if (sendParentLoadEvents) 470 if (sendParentLoadEvents)
465 parent = currentTarget->parentOrShadowHostElement(); // save the nex t parent to dispatch too incase dispatching the event changes the tree 471 parent = currentTarget->parentOrShadowHostElement(); // save the nex t parent to dispatch too incase dispatching the event changes the tree
466 if (hasLoadListener(currentTarget.get())) 472 if (hasLoadListener(currentTarget.get()))
467 currentTarget->dispatchEvent(Event::create(eventNames().loadEvent, f alse, false)); 473 currentTarget->dispatchEvent(Event::create(eventNames().loadEvent, f alse, false));
468 currentTarget = (parent && parent->isSVGElement()) ? static_pointer_cast <SVGElement>(parent) : RefPtr<SVGElement>(); 474 currentTarget = (parent && parent->isSVGElement()) ? static_pointer_cast <SVGElement>(parent) : RefPtr<SVGElement>();
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 738 }
733 739
734 if (name == classAttr) 740 if (name == classAttr)
735 return isSVGStyledElement(); 741 return isSVGStyledElement();
736 742
737 return animatableAttributes.contains(name); 743 return animatableAttributes.contains(name);
738 } 744 }
739 #endif 745 #endif
740 746
741 } 747 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698