OLD | NEW |
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 Loading... |
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 Loading... |
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) |
OLD | NEW |