Changeset 181862 in webkit
- Timestamp:
- Mar 23, 2015, 1:17:32 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/cocoa/FontCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181860 r181862 1 2015-03-23 Dan Bernstein <mitz@apple.com> 2 3 Fixed the build. 4 5 * platform/graphics/cocoa/FontCocoa.mm: 6 (WebCore::Font::platformBoundsForGlyph): Switched to non-deprecated CTFontOrientation values. 7 (WebCore::Font::platformWidthForGlyph): Ditto. 8 1 9 2015-03-23 Jer Noble <jer.noble@apple.com> 2 10 -
trunk/Source/WebCore/platform/graphics/cocoa/FontCocoa.mm
r180561 r181862 406 406 { 407 407 FloatRect boundingBox; 408 boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation() == Vertical ? kCTFont VerticalOrientation : kCTFontHorizontalOrientation, &glyph, 0, 1);408 boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation() == Vertical ? kCTFontOrientationVertical : kCTFontOrientationHorizontal, &glyph, 0, 1); 409 409 boundingBox.setY(-boundingBox.maxY()); 410 410 if (m_syntheticBoldOffset) … … 500 500 } 501 501 } else if (!populatedAdvance) 502 CTFontGetAdvancesForGlyphs(m_platformData.ctFont(), horizontal ? kCTFont HorizontalOrientation : kCTFontVerticalOrientation, &glyph, &advance, 1);502 CTFontGetAdvancesForGlyphs(m_platformData.ctFont(), horizontal ? kCTFontOrientationHorizontal : kCTFontOrientationVertical, &glyph, &advance, 1); 503 503 504 504 return advance.width + m_syntheticBoldOffset;
Note:
See TracChangeset
for help on using the changeset viewer.