Changeset 245755 in webkit
- Timestamp:
- May 24, 2019, 2:47:36 PM (7 years ago)
- Location:
- branches/safari-608.1.24.20-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/FontCascadeCocoa.mm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1.24.20-branch/Source/WebCore/ChangeLog
r245754 r245755 1 2019-05-24 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r245753. rdar://problem/51068494 4 5 Refactor how showLetterpressedGlyphsWithAdvances gets the graphics context. 6 https://bugs.webkit.org/show_bug.cgi?id=198225 7 8 Reviewed by Dean Jackson. 9 10 * platform/graphics/cocoa/FontCascadeCocoa.mm: 11 (WebCore::showLetterpressedGlyphsWithAdvances): 12 (WebCore::FontCascade::drawGlyphs): 13 14 15 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245753 268f45cc-cd09-0410-ab3c-d52691b4dbfc 16 17 2019-05-24 Timothy Hatcher <timothy@apple.com> 18 19 Refactor how showLetterpressedGlyphsWithAdvances gets the graphics context. 20 https://bugs.webkit.org/show_bug.cgi?id=198225 21 22 Reviewed by Dean Jackson. 23 24 * platform/graphics/cocoa/FontCascadeCocoa.mm: 25 (WebCore::showLetterpressedGlyphsWithAdvances): 26 (WebCore::FontCascade::drawGlyphs): 27 1 28 2019-05-24 Alan Coon <alancoon@apple.com> 2 29 -
branches/safari-608.1.24.20-branch/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm
r245230 r245755 99 99 } 100 100 101 static void showLetterpressedGlyphsWithAdvances(const FloatPoint& point, const Font& font, CGContextRef context, const CGGlyph* glyphs, const CGSize* advances, unsigned count)101 static void showLetterpressedGlyphsWithAdvances(const FloatPoint& point, const Font& font, GraphicsContext& coreContext, const CGGlyph* glyphs, const CGSize* advances, unsigned count) 102 102 { 103 103 #if ENABLE(LETTERPRESS) … … 110 110 return; 111 111 } 112 113 CGContextRef context = coreContext.platformContext(); 112 114 113 115 CGContextSetTextPosition(context, point.x(), point.y()); … … 127 129 styleConfiguration.useSimplifiedEffect = YES; 128 130 } 131 132 #if USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/FontCascadeCocoaAdditions.mm>) 133 #include <WebKitAdditions/FontCascadeCocoaAdditions.mm> 134 #endif 129 135 130 136 CGContextSetFont(context, adoptCF(CTFontCopyGraphicsFont(ctFont, nullptr)).get()); … … 138 144 UNUSED_PARAM(point); 139 145 UNUSED_PARAM(font); 140 UNUSED_PARAM(co ntext);146 UNUSED_PARAM(coreContext); 141 147 UNUSED_PARAM(glyphs); 142 148 UNUSED_PARAM(advances); … … 300 306 301 307 if (useLetterpressEffect) 302 showLetterpressedGlyphsWithAdvances(point, font, c gContext, glyphBuffer.glyphs(from), static_cast<const CGSize*>(glyphBuffer.advances(from)), numGlyphs);308 showLetterpressedGlyphsWithAdvances(point, font, context, glyphBuffer.glyphs(from), static_cast<const CGSize*>(glyphBuffer.advances(from)), numGlyphs); 303 309 else 304 310 showGlyphsWithAdvances(point, font, cgContext, glyphBuffer.glyphs(from), static_cast<const CGSize*>(glyphBuffer.advances(from)), numGlyphs);
Note:
See TracChangeset
for help on using the changeset viewer.