Changeset 175379 in webkit


Ignore:
Timestamp:
Oct 30, 2014, 2:17:30 PM (11 years ago)
Author:
mmaxfield@apple.com
Message:

Migrate ComplexTextControllerCoreText to use SPI instead of WKSI
https://bugs.webkit.org/show_bug.cgi?id=138228

Reviewed by Simon Fraser.

No new tests because there is no behavior change.

  • WebCore.xcodeproj/project.pbxproj:
  • platform/graphics/mac/ComplexTextControllerCoreText.mm:

(WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
(WebCore::ComplexTextController::collectComplexTextRunsForCharacters):

  • platform/spi/cocoa/CoreTextSPI.h: Added.
Location:
trunk/Source/WebCore
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Source/WebCore/ChangeLog

    r175375 r175379  
     12014-10-30  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Migrate ComplexTextControllerCoreText to use SPI instead of WKSI
     4        https://bugs.webkit.org/show_bug.cgi?id=138228
     5
     6        Reviewed by Simon Fraser.
     7
     8        No new tests because there is no behavior change.
     9
     10        * WebCore.xcodeproj/project.pbxproj:
     11        * platform/graphics/mac/ComplexTextControllerCoreText.mm:
     12        (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
     13        (WebCore::ComplexTextController::collectComplexTextRunsForCharacters):
     14        * platform/spi/cocoa/CoreTextSPI.h: Added.
     15
    1162014-10-30  Eric Carlson  <eric.carlson@apple.com>
    217
  • TabularUnified trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r175348 r175379  
    79577957                1C4C8F630AD8655D009475CE /* DeleteButton.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeleteButton.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
    79587958                1C4C8F640AD8655D009475CE /* DeleteButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeleteButton.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };
     7959                1C5E980F1A02CEFA002DB55F /* CoreTextSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CoreTextSPI.h; sourceTree = "<group>"; };
    79597960                1C81B9560E97330800266E07 /* InspectorController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorController.h; sourceTree = "<group>"; };
    79607961                1C81B9570E97330800266E07 /* InspectorController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorController.cpp; sourceTree = "<group>"; };
     
    1626816269                                653EF83819A043AE0052202C /* NSURLFileTypeMappingsSPI.h */,
    1626916270                                1CF7E26E19D881EF00DD8F98 /* CGFontUnicodeSupportSPI.h */,
     16271                                1C5E980F1A02CEFA002DB55F /* CoreTextSPI.h */,
    1627016272                        );
    1627116273                        path = cocoa;
  • TabularUnified trunk/Source/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.mm

    r167768 r175379  
    2727#include "ComplexTextController.h"
    2828
     29#include "CoreTextSPI.h"
    2930#include "Font.h"
    3031#include "FontCache.h"
     
    99100    , m_indexBegin(runRange.location)
    100101    , m_indexEnd(runRange.location + runRange.length)
    101     , m_initialAdvance(wkCTRunGetInitialAdvance(ctRun))   
     102    , m_initialAdvance(CTRunGetInitialAdvance(ctRun))
    102103    , m_isLTR(!(CTRunGetStatus(ctRun) & kCTRunStatusRightToLeft))
    103104    , m_isMonotonic(true)
     
    225226
    226227        ProviderInfo info = { cp, length, stringAttributes.get() };
    227         RetainPtr<CTTypesetterRef> typesetter = adoptCF(wkCreateCTTypesetterWithUniCharProviderAndOptions(&provideStringAndAttributes, 0, &info, m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
     228        RetainPtr<CTTypesetterRef> typesetter = adoptCF(CTTypesetterCreateWithUniCharProviderAndOptions(&provideStringAndAttributes, 0, &info, m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
    228229
    229230        line = adoptCF(CTTypesetterCreateLine(typesetter.get(), CFRangeMake(0, 0)));
     
    231232        ProviderInfo info = { cp, length, stringAttributes.get() };
    232233
    233         line = adoptCF(wkCreateCTLineWithUniCharProvider(&provideStringAndAttributes, 0, &info));
     234        line = adoptCF(CTLineCreateWithUniCharProvider(&provideStringAndAttributes, nullptr, &info));
    234235    }
    235236
Note: See TracChangeset for help on using the changeset viewer.