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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGMPathElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent) 85 Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent)
86 { 86 {
87 SVGElement::insertedInto(rootParent); 87 SVGElement::insertedInto(rootParent);
88 if (rootParent->inDocument()) 88 if (rootParent->inDocument())
89 buildPendingResource(); 89 buildPendingResource();
90 return InsertionDone; 90 return InsertionDone;
91 } 91 }
92 92
93 void SVGMPathElement::removedFrom(ContainerNode* rootParent) 93 void SVGMPathElement::removedFrom(ContainerNode* rootParent, Node* next)
94 { 94 {
95 SVGElement::removedFrom(rootParent); 95 SVGElement::removedFrom(rootParent, next);
96 notifyParentOfPathChange(rootParent); 96 notifyParentOfPathChange(rootParent);
97 if (rootParent->inDocument()) 97 if (rootParent->inDocument())
98 clearResourceReferences(); 98 clearResourceReferences();
99 } 99 }
100 100
101 void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName) 101 void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName)
102 { 102 {
103 if (SVGURIReference::isKnownAttribute(attrName)) { 103 if (SVGURIReference::isKnownAttribute(attrName)) {
104 SVGElement::InvalidationGuard invalidationGuard(this); 104 SVGElement::InvalidationGuard invalidationGuard(this);
105 buildPendingResource(); 105 buildPendingResource();
(...skipping 14 matching lines...) Expand all
120 notifyParentOfPathChange(parentNode()); 120 notifyParentOfPathChange(parentNode());
121 } 121 }
122 122
123 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) 123 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
124 { 124 {
125 if (isSVGAnimateMotionElement(parent)) 125 if (isSVGAnimateMotionElement(parent))
126 toSVGAnimateMotionElement(parent)->updateAnimationPath(); 126 toSVGAnimateMotionElement(parent)->updateAnimationPath();
127 } 127 }
128 128
129 } // namespace blink 129 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698