Skip to content
  • commit-queue@webkit.org's avatar
    2011-01-25 Ned Holbrook <nholbrook@apple.com> · 8fedcff0
    commit-queue@webkit.org authored
            Reviewed by Dan Bernstein.
    
            ComplexTextController incorrectly conflates string length and range of indexes
            https://bugs.webkit.org/show_bug.cgi?id=52760
    
            * fast/text/offsetForPosition-complex-fallback-expected.txt: Added.
            * fast/text/offsetForPosition-complex-fallback.html: Added.
    2011-01-25  Ned Holbrook  <nholbrook@apple.com>
    
            Reviewed by Dan Bernstein.
    
            ComplexTextController incorrectly conflates string length and range of indexes
            https://bugs.webkit.org/show_bug.cgi?id=52760
    
            Test: fast/text/offsetForPosition-complex-fallback.html
    
            * platform/graphics/mac/ComplexTextController.cpp:
            (WebCore::ComplexTextController::offsetForPosition):
            (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
            (WebCore::ComplexTextController::ComplexTextRun::setIsNonMonotonic):
            (WebCore::ComplexTextController::advance):
            * platform/graphics/mac/ComplexTextController.h:
            (WebCore::ComplexTextController::ComplexTextRun::create):
            (WebCore::ComplexTextController::ComplexTextRun::indexEnd):
            * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
            (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
            * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
            (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
            (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8fedcff0