-
zimmermann@webkit.org authored
Reviewed by Dirk Schulze. Add two new helper files for the new SVGTextLayoutEngine https://bugs.webkit.org/show_bug.cgi?id=46972 Refactor code from SVGTextLayoutUtilities into two seperated classes. SVGTextLayoutUtilities will be removed, as soon as the main clss SVGTextLayoutEngine lands and gets used. Doesn't affect any functionality yet, as the new classes are not used so far. * Android.mk: * CMakeLists.txt: * GNUmakefile.am: * WebCore.gypi: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * rendering/svg/SVGTextFragment.h: * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Added. (WebCore::SVGTextLayoutEngineBaseline::SVGTextLayoutEngineBaseline): (WebCore::SVGTextLayoutEngineBaseline::calculateBaselineShift): (WebCore::SVGTextLayoutEngineBaseline::dominantBaselineToAlignmentBaseline): (WebCore::SVGTextLayoutEngineBaseline::calculateAlignmentBaselineShift): (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle): (WebCore::glyphOrientationIsMultiplyOf180Degrees): (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphAdvanceAndOrientation): * rendering/svg/SVGTextLayoutEngineBaseline.h: Added. * rendering/svg/SVGTextLayoutEngineSpacing.cpp: Added. (WebCore::SVGTextLayoutEngineSpacing::SVGTextLayoutEngineSpacing): (WebCore::SVGTextLayoutEngineSpacing::calculateSVGKerning): (WebCore::SVGTextLayoutEngineSpacing::calculateCSSKerningAndSpacing): * rendering/svg/SVGTextLayoutEngineSpacing.h: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
008eb8e2