-
evan@chromium.org authored
Reviewed by Tony Chang. [chromium] simplify complex text code, fixing a handful of layout tests https://bugs.webkit.org/show_bug.cgi?id=52661 * platform/chromium/test_expectations.txt: Mark 11 tests as expected to pass. 2011-01-18 Evan Martin <evan@chromium.org> Reviewed by Tony Chang. [chromium] simplify complex text code, fixing a handful of layout tests https://bugs.webkit.org/show_bug.cgi?id=52661 Change ComplexTextControllerLinux to lay out RTL text to the left from the starting point. (Previously it always went to the right.) This allows us to map pixel offsets more directly into offsets within the text runs, simplifying a few of the text-fiddling functions (they no longer need to track the current position, as ComplexTextController now does it). * platform/graphics/chromium/ComplexTextControllerLinux.cpp: (WebCore::ComplexTextController::ComplexTextController): (WebCore::ComplexTextController::reset): (WebCore::ComplexTextController::setGlyphXPositions): * platform/graphics/chromium/ComplexTextControllerLinux.h: (WebCore::ComplexTextController::offsetX): * platform/graphics/chromium/FontLinux.cpp: (WebCore::Font::drawComplexText): (WebCore::Font::floatWidthForComplexText): (WebCore::glyphIndexForXPositionInScriptRun): (WebCore::Font::offsetForPositionForComplexText): (WebCore::Font::selectionRectForComplexText): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1642e005