| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 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 #include "core/svg/SVGFontFaceElement.h" | |
| 30 | 29 |
| 31 namespace WebCore { | 30 namespace WebCore { |
| 32 | 31 |
| 33 inline SVGHKernElement::SVGHKernElement(const QualifiedName& tagName, Document*
document) | 32 inline SVGHKernElement::SVGHKernElement(const QualifiedName& tagName, Document*
document) |
| 34 : SVGElement(tagName, document) | 33 : SVGElement(tagName, document) |
| 35 { | 34 { |
| 36 ASSERT(hasTagName(SVGNames::hkernTag)); | 35 ASSERT(hasTagName(SVGNames::hkernTag)); |
| 37 ScriptWrappable::init(this); | 36 ScriptWrappable::init(this); |
| 38 } | 37 } |
| 39 | 38 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) | 78 && parseKerningUnicodeString(u1, kerningPair.unicodeRange1, kerningPair.
unicodeName1) |
| 80 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { | 79 && parseKerningUnicodeString(u2, kerningPair.unicodeRange2, kerningPair.
unicodeName2)) { |
| 81 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); | 80 kerningPair.kerning = fastGetAttribute(SVGNames::kAttr).string().toFloat
(); |
| 82 kerningPairs.append(kerningPair); | 81 kerningPairs.append(kerningPair); |
| 83 } | 82 } |
| 84 } | 83 } |
| 85 | 84 |
| 86 } | 85 } |
| 87 | 86 |
| 88 #endif // ENABLE(SVG_FONTS) | 87 #endif // ENABLE(SVG_FONTS) |
| OLD | NEW |