| 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) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "CSSPropertyNames.h" | 28 #include "CSSPropertyNames.h" |
| 29 #include "CSSValueKeywords.h" | 29 #include "CSSValueKeywords.h" |
| 30 #include "core/css/CSSFontFaceSrcValue.h" | 30 #include "core/css/CSSFontFaceSrcValue.h" |
| 31 #include "core/css/CSSParser.h" | 31 #include "core/css/CSSParser.h" |
| 32 #include "core/css/CSSStyleSheet.h" | 32 #include "core/css/CSSStyleSheet.h" |
| 33 #include "core/css/CSSValueList.h" | 33 #include "core/css/CSSValueList.h" |
| 34 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
| 35 #include "core/css/StyleRule.h" | 35 #include "core/css/StyleRule.h" |
| 36 #include "core/dom/Attribute.h" | 36 #include "core/dom/Attribute.h" |
| 37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
| 38 #include "core/platform/graphics/Font.h" | |
| 39 #include "core/svg/SVGDocumentExtensions.h" | 38 #include "core/svg/SVGDocumentExtensions.h" |
| 40 #include "core/svg/SVGFontElement.h" | 39 #include "core/svg/SVGFontElement.h" |
| 41 #include "core/svg/SVGFontFaceSrcElement.h" | 40 #include "core/svg/SVGFontFaceSrcElement.h" |
| 42 #include "core/svg/SVGGlyphElement.h" | 41 #include "core/svg/SVGGlyphElement.h" |
| 42 #include "platform/fonts/Font.h" |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 using namespace SVGNames; | 46 using namespace SVGNames; |
| 47 | 47 |
| 48 inline SVGFontFaceElement::SVGFontFaceElement(Document& document) | 48 inline SVGFontFaceElement::SVGFontFaceElement(Document& document) |
| 49 : SVGElement(font_faceTag, document) | 49 : SVGElement(font_faceTag, document) |
| 50 , m_fontFaceRule(StyleRuleFontFace::create()) | 50 , m_fontFaceRule(StyleRuleFontFace::create()) |
| 51 , m_fontElement(0) | 51 , m_fontElement(0) |
| 52 { | 52 { |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 346 |
| 347 void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) | 347 void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) |
| 348 { | 348 { |
| 349 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 349 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
| 350 rebuildFontFace(); | 350 rebuildFontFace(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace WebCore | 353 } // namespace WebCore |
| 354 | 354 |
| 355 #endif // ENABLE(SVG_FONTS) | 355 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |