| 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/fetch/ResourceFetcher.h" | 30 #include "core/fetch/ResourceFetcher.h" |
| 31 #include "core/svg/SVGFontFaceElement.h" | 31 #include "core/svg/SVGFontFaceElement.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 using namespace SVGNames; | 35 using namespace SVGNames; |
| 36 | 36 |
| 37 inline SVGFontFaceUriElement::SVGFontFaceUriElement(Document& document) | 37 inline SVGFontFaceUriElement::SVGFontFaceUriElement(Document& document) |
| 38 : SVGElement(font_face_uriTag, document) | 38 : SVGElement(font_face_uriTag, document) |
| 39 { | 39 { |
| 40 ScriptWrappable::init(this); | |
| 41 } | 40 } |
| 42 | 41 |
| 43 DEFINE_NODE_FACTORY(SVGFontFaceUriElement) | 42 DEFINE_NODE_FACTORY(SVGFontFaceUriElement) |
| 44 | 43 |
| 45 SVGFontFaceUriElement::~SVGFontFaceUriElement() | 44 SVGFontFaceUriElement::~SVGFontFaceUriElement() |
| 46 { | 45 { |
| 47 if (m_resource) | 46 if (m_resource) |
| 48 m_resource->removeClient(this); | 47 m_resource->removeClient(this); |
| 49 } | 48 } |
| 50 | 49 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 m_resource->beginLoadIfNeeded(fetcher); | 96 m_resource->beginLoadIfNeeded(fetcher); |
| 98 } | 97 } |
| 99 } else { | 98 } else { |
| 100 m_resource = 0; | 99 m_resource = 0; |
| 101 } | 100 } |
| 102 } | 101 } |
| 103 | 102 |
| 104 } | 103 } |
| 105 | 104 |
| 106 #endif // ENABLE(SVG_FONTS) | 105 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |