Changeset 88487 in webkit


Ignore:
Timestamp:
Jun 9, 2011, 2:48:35 PM (14 years ago)
Author:
mitz@apple.com
Message:

Fix a regression from r88478.

Reviewed by Darin Adler.

  • platform/graphics/mac/ComplexTextControllerCoreText.cpp:

(WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Add the runs
in reverse order in the RTL case here, since the whole vector is reversed by collectComplexTextRuns()
afterwards.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r88479 r88487  
     12011-06-09  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fix a regression from r88478.
     6
     7        * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
     8        (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Add the runs
     9        in reverse order in the RTL case here, since the whole vector is reversed by collectComplexTextRuns()
     10        afterwards.
     11
    1122011-06-09  Julien Chaffraix  <jchaffraix@codeaurora.org>
    213
  • trunk/Source/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.cpp

    r85902 r88487  
    173173
    174174    for (CFIndex r = 0; r < runCount; r++) {
    175         CTRunRef ctRun = static_cast<CTRunRef>(CFArrayGetValueAtIndex(runArray, r));
     175        CTRunRef ctRun = static_cast<CTRunRef>(CFArrayGetValueAtIndex(runArray, m_run.ltr() ? r : runCount - 1 - r));
    176176        ASSERT(CFGetTypeID(ctRun) == CTRunGetTypeID());
    177177        CFRange runRange = CTRunGetStringRange(ctRun);
Note: See TracChangeset for help on using the changeset viewer.