| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 void SVGFontFaceUriElement::parseAttribute(const QualifiedName& name, const Atom
icString& value) | 66 void SVGFontFaceUriElement::parseAttribute(const QualifiedName& name, const Atom
icString& value) |
| 67 { | 67 { |
| 68 if (name == XLinkNames::hrefAttr) | 68 if (name == XLinkNames::hrefAttr) |
| 69 loadFont(); | 69 loadFont(); |
| 70 else | 70 else |
| 71 SVGElement::parseAttribute(name, value); | 71 SVGElement::parseAttribute(name, value); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void SVGFontFaceUriElement::childrenChanged(bool changedByParser, Node* beforeCh
ange, Node* afterChange, int childCountDelta) | 74 void SVGFontFaceUriElement::childrenChanged(bool changedByParser, const Handle<N
ode>& beforeChange, const Handle<Node>& afterChange, int childCountDelta) |
| 75 { | 75 { |
| 76 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 76 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
| 77 | 77 |
| 78 if (!parentNode() || !parentNode()->hasTagName(font_face_srcTag)) | 78 if (!parentNode() || !parentNode()->hasTagName(font_face_srcTag)) |
| 79 return; | 79 return; |
| 80 | 80 |
| 81 Handle<ContainerNode> grandparent = parentNode()->parentNode(); | 81 Handle<ContainerNode> grandparent = parentNode()->parentNode(); |
| 82 if (grandparent && grandparent->hasTagName(font_faceTag)) | 82 if (grandparent && grandparent->hasTagName(font_faceTag)) |
| 83 Handle<SVGFontFaceElement>::cast(grandparent)->rebuildFontFace(); | 83 Handle<SVGFontFaceElement>::cast(grandparent)->rebuildFontFace(); |
| 84 } | 84 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 104 m_cachedFont->addClient(this); | 104 m_cachedFont->addClient(this); |
| 105 m_cachedFont->beginLoadIfNeeded(cachedResourceLoader); | 105 m_cachedFont->beginLoadIfNeeded(cachedResourceLoader); |
| 106 } | 106 } |
| 107 } else | 107 } else |
| 108 m_cachedFont = 0; | 108 m_cachedFont = 0; |
| 109 } | 109 } |
| 110 | 110 |
| 111 } | 111 } |
| 112 | 112 |
| 113 #endif // ENABLE(SVG_FONTS) | 113 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |