⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181862 in webkit


Ignore:
Timestamp:
Mar 23, 2015, 1:17:32 PM (11 years ago)
Author:
mitz@apple.com
Message:

Fixed the build.

  • platform/graphics/cocoa/FontCocoa.mm:

(WebCore::Font::platformBoundsForGlyph): Switched to non-deprecated CTFontOrientation values.
(WebCore::Font::platformWidthForGlyph): Ditto.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181860 r181862  
     12015-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
    192015-03-23  Jer Noble  <jer.noble@apple.com>
    210
  • trunk/Source/WebCore/platform/graphics/cocoa/FontCocoa.mm

    r180561 r181862  
    406406{
    407407    FloatRect boundingBox;
    408     boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation() == Vertical ? kCTFontVerticalOrientation : kCTFontHorizontalOrientation, &glyph, 0, 1);
     408    boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation() == Vertical ? kCTFontOrientationVertical : kCTFontOrientationHorizontal, &glyph, 0, 1);
    409409    boundingBox.setY(-boundingBox.maxY());
    410410    if (m_syntheticBoldOffset)
     
    500500        }
    501501    } else if (!populatedAdvance)
    502         CTFontGetAdvancesForGlyphs(m_platformData.ctFont(), horizontal ? kCTFontHorizontalOrientation : kCTFontVerticalOrientation, &glyph, &advance, 1);
     502        CTFontGetAdvancesForGlyphs(m_platformData.ctFont(), horizontal ? kCTFontOrientationHorizontal : kCTFontOrientationVertical, &glyph, &advance, 1);
    503503
    504504    return advance.width + m_syntheticBoldOffset;
Note: See TracChangeset for help on using the changeset viewer.