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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGTitleElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 25 matching lines...) Expand all
36 Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode* rootParent) 36 Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode* rootParent)
37 { 37 {
38 SVGElement::insertedInto(rootParent); 38 SVGElement::insertedInto(rootParent);
39 if (!rootParent->inDocument()) 39 if (!rootParent->inDocument())
40 return InsertionDone; 40 return InsertionDone;
41 if (hasChildren() && document().isSVGDocument()) 41 if (hasChildren() && document().isSVGDocument())
42 document().setTitleElement(this); 42 document().setTitleElement(this);
43 return InsertionDone; 43 return InsertionDone;
44 } 44 }
45 45
46 void SVGTitleElement::removedFrom(ContainerNode* rootParent) 46 void SVGTitleElement::removedFrom(ContainerNode* rootParent, Node* next)
47 { 47 {
48 SVGElement::removedFrom(rootParent); 48 SVGElement::removedFrom(rootParent, next);
49 if (rootParent->inDocument() && document().isSVGDocument()) 49 if (rootParent->inDocument() && document().isSVGDocument())
50 document().removeTitle(this); 50 document().removeTitle(this);
51 } 51 }
52 52
53 void SVGTitleElement::childrenChanged(const ChildrenChange& change) 53 void SVGTitleElement::childrenChanged(const ChildrenChange& change)
54 { 54 {
55 SVGElement::childrenChanged(change); 55 SVGElement::childrenChanged(change);
56 if (inDocument() && document().isSVGDocument()) 56 if (inDocument() && document().isSVGDocument())
57 document().setTitleElement(this); 57 document().setTitleElement(this);
58 } 58 }
59 59
60 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698