| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #if ENABLE(SVG_FONTS) | 23 #if ENABLE(SVG_FONTS) |
| 24 #include "core/SVGNames.h" | 24 #include "core/SVGNames.h" |
| 25 #include "core/fetch/FontResource.h" | 25 #include "core/fetch/FontResource.h" |
| 26 #include "core/fetch/ResourcePtr.h" | 26 #include "core/fetch/ResourcePtr.h" |
| 27 #include "core/svg/SVGElement.h" | 27 #include "core/svg/SVGElement.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class CSSFontFaceSrcValue; | 31 class CSSFontFaceSrcValue; |
| 32 | 32 |
| 33 class SVGFontFaceUriElement FINAL : public SVGElement, public FontResourceClient
{ | 33 class SVGFontFaceUriElement final : public SVGElement, public FontResourceClient
{ |
| 34 DEFINE_WRAPPERTYPEINFO(); | 34 DEFINE_WRAPPERTYPEINFO(); |
| 35 public: | 35 public: |
| 36 DECLARE_NODE_FACTORY(SVGFontFaceUriElement); | 36 DECLARE_NODE_FACTORY(SVGFontFaceUriElement); |
| 37 | 37 |
| 38 virtual ~SVGFontFaceUriElement(); | 38 virtual ~SVGFontFaceUriElement(); |
| 39 | 39 |
| 40 PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue() const; | 40 PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue() const; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 explicit SVGFontFaceUriElement(Document&); | 43 explicit SVGFontFaceUriElement(Document&); |
| 44 | 44 |
| 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 46 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 46 virtual void childrenChanged(const ChildrenChange&) override; |
| 47 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 47 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 48 | 48 |
| 49 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 49 virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } |
| 50 | 50 |
| 51 void loadFont(); | 51 void loadFont(); |
| 52 | 52 |
| 53 ResourcePtr<FontResource> m_resource; | 53 ResourcePtr<FontResource> m_resource; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| 57 | 57 |
| 58 #endif // ENABLE(SVG_FONTS) | 58 #endif // ENABLE(SVG_FONTS) |
| 59 #endif // SVGFontFaceUriElement_h | 59 #endif // SVGFontFaceUriElement_h |
| OLD | NEW |