| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 return SVGElement::insertedInto(rootParent); | 88 return SVGElement::insertedInto(rootParent); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void SVGFontFaceUriElement::loadFont() | 91 void SVGFontFaceUriElement::loadFont() |
| 92 { | 92 { |
| 93 if (m_resource) | 93 if (m_resource) |
| 94 m_resource->removeClient(this); | 94 m_resource->removeClient(this); |
| 95 | 95 |
| 96 const AtomicString& href = getAttribute(XLinkNames::hrefAttr); | 96 const AtomicString& href = getAttribute(XLinkNames::hrefAttr); |
| 97 if (!href.isNull()) { | 97 if (!href.isNull()) { |
| 98 ResourceFetcher* fetcher = document()->fetcher(); | 98 ResourceFetcher* fetcher = document().fetcher(); |
| 99 FetchRequest request(ResourceRequest(document()->completeURL(href)), loc
alName()); | 99 FetchRequest request(ResourceRequest(document().completeURL(href)), loca
lName()); |
| 100 m_resource = fetcher->fetchFont(request); | 100 m_resource = fetcher->fetchFont(request); |
| 101 if (m_resource) { | 101 if (m_resource) { |
| 102 m_resource->addClient(this); | 102 m_resource->addClient(this); |
| 103 m_resource->beginLoadIfNeeded(fetcher); | 103 m_resource->beginLoadIfNeeded(fetcher); |
| 104 } | 104 } |
| 105 } else { | 105 } else { |
| 106 m_resource = 0; | 106 m_resource = 0; |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 } | 110 } |
| 111 | 111 |
| 112 #endif // ENABLE(SVG_FONTS) | 112 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |