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

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

Issue 365673002: Pass a struct to ContainerNode::childrenChanged() instead of separate arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dead code Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple Inc. All rights reserved.
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 void SVGFontFaceUriElement::parseAttribute(const QualifiedName& name, const Atom icString& value) 59 void SVGFontFaceUriElement::parseAttribute(const QualifiedName& name, const Atom icString& value)
60 { 60 {
61 if (name.matches(XLinkNames::hrefAttr)) 61 if (name.matches(XLinkNames::hrefAttr))
62 loadFont(); 62 loadFont();
63 else 63 else
64 SVGElement::parseAttribute(name, value); 64 SVGElement::parseAttribute(name, value);
65 } 65 }
66 66
67 void SVGFontFaceUriElement::childrenChanged(bool changedByParser, Node* beforeCh ange, Node* afterChange, int childCountDelta) 67 void SVGFontFaceUriElement::childrenChanged(const ChildrenChange& change)
68 { 68 {
69 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 69 SVGElement::childrenChanged(change);
70 70
71 if (!isSVGFontFaceSrcElement(parentNode())) 71 if (!isSVGFontFaceSrcElement(parentNode()))
72 return; 72 return;
73 73
74 ContainerNode* grandparent = parentNode()->parentNode(); 74 ContainerNode* grandparent = parentNode()->parentNode();
75 if (isSVGFontFaceElement(grandparent)) 75 if (isSVGFontFaceElement(grandparent))
76 toSVGFontFaceElement(*grandparent).rebuildFontFace(); 76 toSVGFontFaceElement(*grandparent).rebuildFontFace();
77 } 77 }
78 78
79 Node::InsertionNotificationRequest SVGFontFaceUriElement::insertedInto(Container Node* rootParent) 79 Node::InsertionNotificationRequest SVGFontFaceUriElement::insertedInto(Container Node* rootParent)
(...skipping 17 matching lines...) Expand all
97 m_resource->beginLoadIfNeeded(fetcher); 97 m_resource->beginLoadIfNeeded(fetcher);
98 } 98 }
99 } else { 99 } else {
100 m_resource = 0; 100 m_resource = 0;
101 } 101 }
102 } 102 }
103 103
104 } 104 }
105 105
106 #endif // ENABLE(SVG_FONTS) 106 #endif // ENABLE(SVG_FONTS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698