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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // Animations are started at the end of document parsing and after f iring the load event, 541 // Animations are started at the end of document parsing and after f iring the load event,
542 // but if we miss that train (deferred programmatic element insertio n for example) we need 542 // but if we miss that train (deferred programmatic element insertio n for example) we need
543 // to initialize the time container here. 543 // to initialize the time container here.
544 if (!document().parsing() && !document().processingLoadEvent() && do cument().loadEventFinished() && !timeContainer()->isStarted()) 544 if (!document().parsing() && !document().processingLoadEvent() && do cument().loadEventFinished() && !timeContainer()->isStarted())
545 timeContainer()->begin(); 545 timeContainer()->begin();
546 } 546 }
547 } 547 }
548 return SVGGraphicsElement::insertedInto(rootParent); 548 return SVGGraphicsElement::insertedInto(rootParent);
549 } 549 }
550 550
551 void SVGSVGElement::removedFrom(ContainerNode* rootParent) 551 void SVGSVGElement::removedFrom(ContainerNode* rootParent, Node* next)
552 { 552 {
553 if (rootParent->inDocument()) { 553 if (rootParent->inDocument()) {
554 SVGDocumentExtensions& svgExtensions = document().accessSVGExtensions(); 554 SVGDocumentExtensions& svgExtensions = document().accessSVGExtensions();
555 svgExtensions.removeTimeContainer(this); 555 svgExtensions.removeTimeContainer(this);
556 svgExtensions.removeSVGRootWithRelativeLengthDescendents(this); 556 svgExtensions.removeSVGRootWithRelativeLengthDescendents(this);
557 } 557 }
558 558
559 SVGGraphicsElement::removedFrom(rootParent); 559 SVGGraphicsElement::removedFrom(rootParent, next);
560 } 560 }
561 561
562 void SVGSVGElement::pauseAnimations() 562 void SVGSVGElement::pauseAnimations()
563 { 563 {
564 ASSERT(RuntimeEnabledFeatures::smilEnabled()); 564 ASSERT(RuntimeEnabledFeatures::smilEnabled());
565 if (!m_timeContainer->isPaused()) 565 if (!m_timeContainer->isPaused())
566 m_timeContainer->pause(); 566 m_timeContainer->pause();
567 } 567 }
568 568
569 void SVGSVGElement::unpauseAnimations() 569 void SVGSVGElement::unpauseAnimations()
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 visitor->trace(m_width); 772 visitor->trace(m_width);
773 visitor->trace(m_height); 773 visitor->trace(m_height);
774 visitor->trace(m_translation); 774 visitor->trace(m_translation);
775 visitor->trace(m_timeContainer); 775 visitor->trace(m_timeContainer);
776 visitor->trace(m_viewSpec); 776 visitor->trace(m_viewSpec);
777 SVGGraphicsElement::trace(visitor); 777 SVGGraphicsElement::trace(visitor);
778 SVGFitToViewBox::trace(visitor); 778 SVGFitToViewBox::trace(visitor);
779 } 779 }
780 780
781 } // namespace blink 781 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698