Changeset 51633 in webkit


Ignore:
Timestamp:
Dec 3, 2009 5:52:39 AM (14 years ago)
Author:
jeremy@chromium.org
Message:

Reviewed by Eric Seidel.

Switch Chrome/Mac to use Core Text APIs rather than ATSUI APIs.
https://bugs.webkit.org/show_bug.cgi?id=31802

No test since this is already covered by existing pixel tests.

  • platform/graphics/SimpleFontData.h: Change #ifdef to define getNSFont() on Chrome/Mac .
  • platform/graphics/mac/ComplexTextControllerCoreText.cpp: Provide forward declarations

of Core Text functions that are public on 10.6 but SPI on 10.5.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r51625 r51633  
     12009-11-23  Jeremy Moskovich  <jeremy@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Switch Chrome/Mac to use Core Text APIs rather than ATSUI APIs.
     6        https://bugs.webkit.org/show_bug.cgi?id=31802
     7
     8        No test since this is already covered by existing pixel tests.
     9
     10        * wtf/Platform.h: #define USE_CORE_TEXT for Chrome/Mac.
     11
    1122009-12-02  Oliver Hunt  <oliver@apple.com>
    213
  • trunk/JavaScriptCore/wtf/Platform.h

    r51624 r51633  
    200200#define WTF_PLATFORM_CG 1
    201201#define WTF_PLATFORM_CI 1
    202 #define WTF_USE_ATSUI 1
     202#define WTF_USE_ATSUI 0
     203#define WTF_USE_CORE_TEXT 1
    203204#else
    204205#define WTF_PLATFORM_SKIA 1
  • trunk/WebCore/ChangeLog

    r51631 r51633  
     12009-11-23  Jeremy Moskovich  <jeremy@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Switch Chrome/Mac to use Core Text APIs rather than ATSUI APIs.
     6        https://bugs.webkit.org/show_bug.cgi?id=31802
     7
     8        No test since this is already covered by existing pixel tests.
     9
     10        * platform/graphics/SimpleFontData.h: Change #ifdef to define getNSFont() on Chrome/Mac .
     11        * platform/graphics/mac/ComplexTextControllerCoreText.cpp: Provide forward declarations
     12        of Core Text functions that are public on 10.6 but SPI on 10.5.
     13
    1142009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
    215
  • trunk/WebCore/platform/graphics/SimpleFontData.h

    r48989 r51633  
    116116#endif
    117117
    118 #if PLATFORM(MAC)
     118#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))
    119119    NSFont* getNSFont() const { return m_platformData.font(); }
    120120#endif
  • trunk/WebCore/platform/graphics/mac/ComplexTextControllerCoreText.cpp

    r50259 r51633  
    2929
    3030#include "Font.h"
     31
     32#if defined(BUILDING_ON_LEOPARD)
     33// The following symbols are SPI in 10.5.
     34extern "C" {
     35void CTRunGetAdvances(CTRunRef run, CFRange range, CGSize buffer[]);
     36const CGSize* CTRunGetAdvancesPtr(CTRunRef run);
     37extern const CFStringRef kCTTypesetterOptionForcedEmbeddingLevel;
     38}
     39#endif
    3140
    3241namespace WebCore {
Note: See TracChangeset for help on using the changeset viewer.