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

Changeset 181873 in webkit


Ignore:
Timestamp:
Mar 23, 2015, 3:04:34 PM (11 years ago)
Author:
Conrad Shultz
Message:

Replace uses of kCTFontSystemFontType
https://bugs.webkit.org/show_bug.cgi?id=142984

Reviewed by Tim Horton.

  • rendering/RenderThemeMac.mm:

(WebCore::AttachmentLayout::layOutTitle):
(WebCore::AttachmentLayout::layOutSubtitle):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181870 r181873  
     12015-03-23  Conrad Shultz  <conrad_shultz@apple.com>
     2
     3        Replace uses of kCTFontSystemFontType
     4        https://bugs.webkit.org/show_bug.cgi?id=142984
     5
     6        Reviewed by Tim Horton.
     7
     8        * rendering/RenderThemeMac.mm:
     9        (WebCore::AttachmentLayout::layOutTitle):
     10        (WebCore::AttachmentLayout::layOutSubtitle):
     11
    1122015-03-23  Dean Jackson  <dino@apple.com>
    213
  • trunk/Source/WebCore/rendering/RenderThemeMac.mm

    r181118 r181873  
    21792179void AttachmentLayout::layOutTitle(const RenderAttachment& attachment)
    21802180{
    2181     RetainPtr<CTFontRef> font = adoptCF(CTFontCreateUIFontForLanguage(kCTFontSystemFontType, attachmentTitleFontSize, nullptr));
     2181    RetainPtr<CTFontRef> font = adoptCF(CTFontCreateUIFontForLanguage(kCTFontUIFontSystem, attachmentTitleFontSize, nullptr));
    21822182    baseline = CGRound(attachmentIconBackgroundSize + attachmentIconToTitleMargin + CTFontGetAscent(font.get()));
    21832183
     
    22422242        return;
    22432243
    2244     RetainPtr<CTFontRef> font = adoptCF(CTFontCreateUIFontForLanguage(kCTFontSystemFontType, attachmentSubtitleFontSize, nullptr));
     2244    RetainPtr<CTFontRef> font = adoptCF(CTFontCreateUIFontForLanguage(kCTFontUIFontSystem, attachmentSubtitleFontSize, nullptr));
    22452245    NSDictionary *textAttributes = @{
    22462246        (id)kCTFontAttributeName: (id)font.get(),
Note: See TracChangeset for help on using the changeset viewer.