| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 45 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 46 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 46 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 47 | 47 |
| 48 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 48 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
| 49 | 49 |
| 50 void loadFont(); | 50 void loadFont(); |
| 51 | 51 |
| 52 ResourcePtr<FontResource> m_resource; | 52 ResourcePtr<FontResource> m_resource; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 inline SVGFontFaceUriElement* toSVGFontFaceUriElement(Node* node) | 55 DEFINE_NODE_TYPE_CASTS(SVGFontFaceUriElement, hasTagName(SVGNames::font_face_uri
Tag)); |
| 56 { | |
| 57 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::font_fa
ce_uriTag)); | |
| 58 return static_cast<SVGFontFaceUriElement*>(node); | |
| 59 } | |
| 60 | 56 |
| 61 } // namespace WebCore | 57 } // namespace WebCore |
| 62 | 58 |
| 63 #endif // ENABLE(SVG_FONTS) | 59 #endif // ENABLE(SVG_FONTS) |
| 64 #endif | 60 #endif |
| 65 | 61 |
| 66 // vim:ts=4:noet | 62 // vim:ts=4:noet |
| OLD | NEW |