2010-05-08 Dirk Schulze <krit@webkit.org>
authorkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 May 2010 09:06:59 +0000 (09:06 +0000)
committerkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 May 2010 09:06:59 +0000 (09:06 +0000)
commitff8c455ad46dd757f05082e85e1cfe195338181a
tree0fd1993563474f56254b95b2ca9af765f7096863
parent4d546fc36793e0d9398704038215c1bf9970f3de
2010-05-08  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        SVGFont's VKern implementation missing
        https://bugs.webkit.org/show_bug.cgi?id=38663

        Implementation of vkern, needed by SVGFont. Also added DOM and JS bindings
        for vkern and hkern. Made some clean-up in SVGParserUtilities and SVGFontElement.
        SVGHKernElement and SVGVKernElement share most of the code now.

        Test: svg/text/text-vkern.svg

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * Android.mk:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gyp/WebCore.gyp:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * page/DOMWindow.idl:
        * rendering/SVGRootInlineBox.cpp:
        (WebCore::applySVGKerning):
        (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
        * svg/SVGAllInOne.cpp:
        * svg/SVGFontElement.cpp:
        (WebCore::SVGFontElement::invalidateGlyphCache):
        (WebCore::SVGFontElement::ensureGlyphCache):
        (WebCore::matches):
        (WebCore::kerningForPairOfStringsAndGlyphs):
        (WebCore::SVGFontElement::horizontalKerningForPairOfStringsAndGlyphs):
        (WebCore::SVGFontElement::verticalKerningForPairOfStringsAndGlyphs):
        * svg/SVGFontElement.h:
        (WebCore::SVGKerningPair::SVGKerningPair):
        (WebCore::SVGFontElement::rendererIsNeeded):
        * svg/SVGHKernElement.cpp:
        (WebCore::SVGHKernElement::buildHorizontalKerningPair):
        * svg/SVGHKernElement.h:
        * svg/SVGParserUtilities.cpp:
        (WebCore::parseGlyphName):
        (WebCore::parseKerningUnicodeString):
        * svg/SVGParserUtilities.h:
        * svg/SVGVKernElement.cpp: Added.
        (WebCore::SVGVKernElement::SVGVKernElement):
        (WebCore::SVGVKernElement::~SVGVKernElement):
        (WebCore::SVGVKernElement::insertedIntoDocument):
        (WebCore::SVGVKernElement::removedFromDocument):
        (WebCore::SVGVKernElement::buildVerticalKerningPair):
        * svg/SVGVKernElement.h: Added.
        (WebCore::SVGVKernElement::rendererIsNeeded):
        * svg/SVGVKernElement.idl: Added.
        * svg/svgtags.in:

2010-05-08  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        SVGFont's VKern implementation missing
        https://bugs.webkit.org/show_bug.cgi?id=38663

        The changes in DOMWindow.idl and the implementation of the DOM
        and JS bindings of VKern and HKern made some updates necessary.
        Added new test case for SVGFont's VKern.

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/Window/window-property-descriptors-expected.txt:
        * fast/dom/prototype-inheritance-2-expected.txt:
        * fast/dom/prototype-inheritance-expected.txt:
        * fast/js/global-constructors-expected.txt:
        * platform/mac/svg/text/text-vkern-expected.checksum: Added.
        * platform/mac/svg/text/text-vkern-expected.png: Added.
        * platform/mac/svg/text/text-vkern-expected.txt: Added.
        * svg/custom/global-constructors-expected.txt:
        * svg/text/text-vkern.svg: Added.

2010-05-08  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        SVGFont's VKern implementation missing
        https://bugs.webkit.org/show_bug.cgi?id=38663

        * projects/svg/status.xml:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@59010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
38 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
LayoutTests/fast/dom/prototype-inheritance-expected.txt
LayoutTests/fast/js/global-constructors-expected.txt
LayoutTests/platform/mac/svg/text/text-vkern-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/svg/text/text-vkern-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/svg/text/text-vkern-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/global-constructors-expected.txt
LayoutTests/svg/text/text-vkern.svg [new file with mode: 0644]
WebCore/Android.derived.jscbindings.mk
WebCore/Android.derived.v8bindings.mk
WebCore/Android.mk
WebCore/ChangeLog
WebCore/DerivedSources.make
WebCore/GNUmakefile.am
WebCore/WebCore.gyp/WebCore.gyp
WebCore/WebCore.gypi
WebCore/WebCore.pri
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/page/DOMWindow.idl
WebCore/rendering/SVGRootInlineBox.cpp
WebCore/svg/SVGAllInOne.cpp
WebCore/svg/SVGFontElement.cpp
WebCore/svg/SVGFontElement.h
WebCore/svg/SVGHKernElement.cpp
WebCore/svg/SVGHKernElement.h
WebCore/svg/SVGParserUtilities.cpp
WebCore/svg/SVGParserUtilities.h
WebCore/svg/SVGVKernElement.cpp [new file with mode: 0644]
WebCore/svg/SVGVKernElement.h [new file with mode: 0644]
WebCore/svg/SVGVKernElement.idl [new file with mode: 0644]
WebCore/svg/svgtags.in
WebKitSite/ChangeLog
WebKitSite/projects/svg/status.xml