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 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
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 11 matching lines...) Expand all Loading... |
22 #include "config.h" | 22 #include "config.h" |
23 | 23 |
24 #if ENABLE(SVG_FONTS) | 24 #if ENABLE(SVG_FONTS) |
25 #include "core/svg/SVGHKernElement.h" | 25 #include "core/svg/SVGHKernElement.h" |
26 | 26 |
27 #include "SVGNames.h" | 27 #include "SVGNames.h" |
28 #include "core/svg/SVGFontElement.h" | 28 #include "core/svg/SVGFontElement.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 inline SVGHKernElement::SVGHKernElement(const QualifiedName& tagName, Document*
document) | 32 inline SVGHKernElement::SVGHKernElement(const QualifiedName& tagName, Document&
document) |
33 : SVGElement(tagName, document) | 33 : SVGElement(tagName, document) |
34 { | 34 { |
35 ASSERT(hasTagName(SVGNames::hkernTag)); | 35 ASSERT(hasTagName(SVGNames::hkernTag)); |
36 ScriptWrappable::init(this); | 36 ScriptWrappable::init(this); |
37 } | 37 } |
38 | 38 |
39 PassRefPtr<SVGHKernElement> SVGHKernElement::create(const QualifiedName& tagName
, Document* document) | 39 PassRefPtr<SVGHKernElement> SVGHKernElement::create(const QualifiedName& tagName
, Document& document) |
40 { | 40 { |
41 return adoptRef(new SVGHKernElement(tagName, document)); | 41 return adoptRef(new SVGHKernElement(tagName, document)); |
42 } | 42 } |
43 | 43 |
44 Node::InsertionNotificationRequest SVGHKernElement::insertedInto(ContainerNode*
rootParent) | 44 Node::InsertionNotificationRequest SVGHKernElement::insertedInto(ContainerNode*
rootParent) |
45 { | 45 { |
46 ContainerNode* fontNode = parentNode(); | 46 ContainerNode* fontNode = parentNode(); |
47 if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) | 47 if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) |
48 toSVGFontElement(fontNode)->invalidateGlyphCache(); | 48 toSVGFontElement(fontNode)->invalidateGlyphCache(); |
49 | 49 |
(...skipping 24 matching lines...) Expand all Loading... |
74 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) | 74 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) |
75 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { | 75 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { |
76 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); | 76 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); |
77 kerningPairs.append(kerningPair); | 77 kerningPairs.append(kerningPair); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 } | 81 } |
82 | 82 |
83 #endif // ENABLE(SVG_FONTS) | 83 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |