Changeset 175379 in webkit
- Timestamp:
- Oct 30, 2014, 2:17:30 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/WebCore/ChangeLog ¶
r175375 r175379 1 2014-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 1 16 2014-10-30 Eric Carlson <eric.carlson@apple.com> 2 17 -
TabularUnified trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj ¶
r175348 r175379 7957 7957 1C4C8F630AD8655D009475CE /* DeleteButton.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeleteButton.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 7958 7958 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>"; }; 7959 7960 1C81B9560E97330800266E07 /* InspectorController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorController.h; sourceTree = "<group>"; }; 7960 7961 1C81B9570E97330800266E07 /* InspectorController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorController.cpp; sourceTree = "<group>"; }; … … 16268 16269 653EF83819A043AE0052202C /* NSURLFileTypeMappingsSPI.h */, 16269 16270 1CF7E26E19D881EF00DD8F98 /* CGFontUnicodeSupportSPI.h */, 16271 1C5E980F1A02CEFA002DB55F /* CoreTextSPI.h */, 16270 16272 ); 16271 16273 path = cocoa; -
TabularUnified trunk/Source/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.mm ¶
r167768 r175379 27 27 #include "ComplexTextController.h" 28 28 29 #include "CoreTextSPI.h" 29 30 #include "Font.h" 30 31 #include "FontCache.h" … … 99 100 , m_indexBegin(runRange.location) 100 101 , m_indexEnd(runRange.location + runRange.length) 101 , m_initialAdvance( wkCTRunGetInitialAdvance(ctRun))102 , m_initialAdvance(CTRunGetInitialAdvance(ctRun)) 102 103 , m_isLTR(!(CTRunGetStatus(ctRun) & kCTRunStatusRightToLeft)) 103 104 , m_isMonotonic(true) … … 225 226 226 227 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)); 228 229 229 230 line = adoptCF(CTTypesetterCreateLine(typesetter.get(), CFRangeMake(0, 0))); … … 231 232 ProviderInfo info = { cp, length, stringAttributes.get() }; 232 233 233 line = adoptCF( wkCreateCTLineWithUniCharProvider(&provideStringAndAttributes, 0, &info));234 line = adoptCF(CTLineCreateWithUniCharProvider(&provideStringAndAttributes, nullptr, &info)); 234 235 } 235 236
Note:
See TracChangeset
for help on using the changeset viewer.