OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
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 14 matching lines...) Expand all Loading... |
25 #include "SVGFontElement.h" | 25 #include "SVGFontElement.h" |
26 #include "SVGFontFaceElement.h" | 26 #include "SVGFontFaceElement.h" |
27 #include "SVGNames.h" | 27 #include "SVGNames.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 inline SVGVKernElement::SVGVKernElement(const QualifiedName& tagName, Document*
document) | 31 inline SVGVKernElement::SVGVKernElement(const QualifiedName& tagName, Document*
document) |
32 : SVGElement(tagName, document) | 32 : SVGElement(tagName, document) |
33 { | 33 { |
34 ASSERT(hasTagName(SVGNames::vkernTag)); | 34 ASSERT(hasTagName(SVGNames::vkernTag)); |
| 35 ScriptWrappable::init(this); |
35 } | 36 } |
36 | 37 |
37 PassRefPtr<SVGVKernElement> SVGVKernElement::create(const QualifiedName& tagName
, Document* document) | 38 PassRefPtr<SVGVKernElement> SVGVKernElement::create(const QualifiedName& tagName
, Document* document) |
38 { | 39 { |
39 return adoptRef(new SVGVKernElement(tagName, document)); | 40 return adoptRef(new SVGVKernElement(tagName, document)); |
40 } | 41 } |
41 | 42 |
42 Node::InsertionNotificationRequest SVGVKernElement::insertedInto(ContainerNode*
rootParent) | 43 Node::InsertionNotificationRequest SVGVKernElement::insertedInto(ContainerNode*
rootParent) |
43 { | 44 { |
44 if (rootParent->inDocument()) { | 45 if (rootParent->inDocument()) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) | 78 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) |
78 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { | 79 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { |
79 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); | 80 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); |
80 kerningPairs.append(kerningPair); | 81 kerningPairs.append(kerningPair); |
81 } | 82 } |
82 } | 83 } |
83 | 84 |
84 } | 85 } |
85 | 86 |
86 #endif // ENABLE(SVG_FONTS) | 87 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |