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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 using namespace SVGNames; | 47 using namespace SVGNames; |
48 | 48 |
49 inline SVGFontFaceElement::SVGFontFaceElement(Document& document) | 49 inline SVGFontFaceElement::SVGFontFaceElement(Document& document) |
50 : SVGElement(font_faceTag, document) | 50 : SVGElement(font_faceTag, document) |
51 , m_fontFaceRule(StyleRuleFontFace::create()) | 51 , m_fontFaceRule(StyleRuleFontFace::create()) |
52 , m_fontElement(0) | 52 , m_fontElement(0) |
53 { | 53 { |
54 ScriptWrappable::init(this); | 54 ScriptWrappable::init(this); |
55 RefPtr<MutableStylePropertySet> styleDeclaration = MutableStylePropertySet::
create(HTMLStandardMode); | 55 RefPtrWillBeRawPtr<MutableStylePropertySet> styleDeclaration = MutableStyleP
ropertySet::create(HTMLStandardMode); |
56 m_fontFaceRule->setProperties(styleDeclaration.release()); | 56 m_fontFaceRule->setProperties(styleDeclaration.release()); |
57 } | 57 } |
58 | 58 |
59 PassRefPtr<SVGFontFaceElement> SVGFontFaceElement::create(Document& document) | 59 PassRefPtr<SVGFontFaceElement> SVGFontFaceElement::create(Document& document) |
60 { | 60 { |
61 return adoptRef(new SVGFontFaceElement(document)); | 61 return adoptRef(new SVGFontFaceElement(document)); |
62 } | 62 } |
63 | 63 |
64 static CSSPropertyID cssPropertyIdForFontFaceAttributeName(const QualifiedName&
attrName) | 64 static CSSPropertyID cssPropertyIdForFontFaceAttributeName(const QualifiedName&
attrName) |
65 { | 65 { |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 345 |
346 void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) | 346 void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang
e, Node* afterChange, int childCountDelta) |
347 { | 347 { |
348 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 348 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
349 rebuildFontFace(); | 349 rebuildFontFace(); |
350 } | 350 } |
351 | 351 |
352 } // namespace WebCore | 352 } // namespace WebCore |
353 | 353 |
354 #endif // ENABLE(SVG_FONTS) | 354 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |