| 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
| 30 #include "core/fetch/FetchRequest.h" | 30 #include "core/fetch/FetchRequest.h" |
| 31 #include "core/fetch/FontResource.h" | 31 #include "core/fetch/FontResource.h" |
| 32 #include "core/fetch/ResourceFetcher.h" | 32 #include "core/fetch/ResourceFetcher.h" |
| 33 #include "core/svg/SVGFontFaceElement.h" | 33 #include "core/svg/SVGFontFaceElement.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 using namespace SVGNames; | 37 using namespace SVGNames; |
| 38 | 38 |
| 39 inline SVGFontFaceUriElement::SVGFontFaceUriElement(const QualifiedName& tagName
, Document* document) | 39 inline SVGFontFaceUriElement::SVGFontFaceUriElement(const QualifiedName& tagName
, Document& document) |
| 40 : SVGElement(tagName, document) | 40 : SVGElement(tagName, document) |
| 41 { | 41 { |
| 42 ASSERT(hasTagName(font_face_uriTag)); | 42 ASSERT(hasTagName(font_face_uriTag)); |
| 43 ScriptWrappable::init(this); | 43 ScriptWrappable::init(this); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PassRefPtr<SVGFontFaceUriElement> SVGFontFaceUriElement::create(const QualifiedN
ame& tagName, Document* document) | 46 PassRefPtr<SVGFontFaceUriElement> SVGFontFaceUriElement::create(const QualifiedN
ame& tagName, Document& document) |
| 47 { | 47 { |
| 48 return adoptRef(new SVGFontFaceUriElement(tagName, document)); | 48 return adoptRef(new SVGFontFaceUriElement(tagName, document)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 SVGFontFaceUriElement::~SVGFontFaceUriElement() | 51 SVGFontFaceUriElement::~SVGFontFaceUriElement() |
| 52 { | 52 { |
| 53 if (m_resource) | 53 if (m_resource) |
| 54 m_resource->removeClient(this); | 54 m_resource->removeClient(this); |
| 55 } | 55 } |
| 56 | 56 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |