Commit afbd4b00 authored by mrobinson@webkit.org's avatar mrobinson@webkit.org

2011-03-25 Martin Robinson <mrobinson@igalia.com>

        Fix the GTK+ build until we can implement the new cross-platform
        FontPlatformData.h bits.

        * platform/graphics/FontPlatformData.h: Include the proper old font headers.
        (WebCore::FontPlatformData::FontPlatformData): Eliminate GTK+ specific bits of this file
        which reference our obsolete font implementation.
        (WebCore::FontPlatformData::hash): Ditto.

git-svn-id: svn://svn.chromium.org/blink/trunk@81990 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b1a4d281
2011-03-25 Martin Robinson <mrobinson@igalia.com>
Fix the GTK+ build until we can implement the new cross-platform
FontPlatformData.h bits.
* platform/graphics/FontPlatformData.h: Include the proper old font headers.
(WebCore::FontPlatformData::FontPlatformData): Eliminate GTK+ specific bits of this file
which reference our obsolete font implementation.
(WebCore::FontPlatformData::hash): Ditto.
2011-03-25 Steve Falkenburg <sfalken@apple.com> 2011-03-25 Steve Falkenburg <sfalken@apple.com>
Reviewed by Brian Weinstein. Reviewed by Brian Weinstein.
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
#include "chromium/FontPlatformData.h" #include "chromium/FontPlatformData.h"
#elif PLATFORM(QT) #elif PLATFORM(QT)
#include "qt/FontPlatformData.h" #include "qt/FontPlatformData.h"
#elif PLATFORM(GTK) && USE(FREETYPE)
#include "freetype/FontPlatformData.h"
#elif PLATFORM(GTK) && USE(PANGO)
#include "pango/FontPlatformData.h"
#else #else
#ifndef FontPlatformData_h #ifndef FontPlatformData_h
...@@ -45,8 +49,6 @@ ...@@ -45,8 +49,6 @@
#if PLATFORM(CAIRO) #if PLATFORM(CAIRO)
#include <cairo-win32.h> #include <cairo-win32.h>
#endif #endif
#elif PLATFORM(GTK)
#include <pango/pangocairo.h>
#endif #endif
#if PLATFORM(CAIRO) #if PLATFORM(CAIRO)
...@@ -121,9 +123,6 @@ public: ...@@ -121,9 +123,6 @@ public:
#elif PLATFORM(CAIRO) #elif PLATFORM(CAIRO)
, m_fontFace(0) , m_fontFace(0)
, m_scaledFont(0) , m_scaledFont(0)
#if PLATFORM(GTK)
, m_context(0)
#endif
#endif #endif
, m_isColorBitmapFont(false) , m_isColorBitmapFont(false)
#if PLATFORM(WIN) #if PLATFORM(WIN)
...@@ -147,9 +146,6 @@ public: ...@@ -147,9 +146,6 @@ public:
#elif PLATFORM(CAIRO) #elif PLATFORM(CAIRO)
, m_fontFace(0) , m_fontFace(0)
, m_scaledFont(0) , m_scaledFont(0)
#if PLATFORM(GTK)
, m_context(0)
#endif
#endif #endif
, m_isColorBitmapFont(false) , m_isColorBitmapFont(false)
#if PLATFORM(WIN) #if PLATFORM(WIN)
...@@ -176,9 +172,6 @@ public: ...@@ -176,9 +172,6 @@ public:
#elif PLATFORM(CAIRO) #elif PLATFORM(CAIRO)
, m_fontFace(0) , m_fontFace(0)
, m_scaledFont(0) , m_scaledFont(0)
#if PLATFORM(GTK)
, m_context(0)
#endif
#endif #endif
, m_isColorBitmapFont(false) , m_isColorBitmapFont(false)
#if PLATFORM(WIN) #if PLATFORM(WIN)
...@@ -216,10 +209,6 @@ public: ...@@ -216,10 +209,6 @@ public:
~FontPlatformData(); ~FontPlatformData();
#if PLATFORM(GTK)
static bool init();
#endif
#if PLATFORM(WIN) #if PLATFORM(WIN)
HFONT hfont() const { return m_font ? m_font->handle() : 0; } HFONT hfont() const { return m_font ? m_font->handle() : 0; }
bool useGDI() const { return m_useGDI; } bool useGDI() const { return m_useGDI; }
...@@ -265,9 +254,6 @@ public: ...@@ -265,9 +254,6 @@ public:
{ {
#if PLATFORM(WIN) #if PLATFORM(WIN)
return m_font ? m_font->hash() : 0; return m_font ? m_font->hash() : 0;
#elif PLATFORM(GTK)
uintptr_t hashCodes[1] = { reinterpret_cast<uintptr_t>(m_scaledFont) };
return StringHasher::hashMemory<sizeof(hashCodes)>(hashCodes);
#elif OS(DARWIN) #elif OS(DARWIN)
ASSERT(m_font || !m_cgFont); ASSERT(m_font || !m_cgFont);
uintptr_t hashCodes[3] = { (uintptr_t)m_font, m_widthVariant, m_textOrientation << 3 | m_orientation << 2 | m_syntheticBold << 1 | m_syntheticOblique }; uintptr_t hashCodes[3] = { (uintptr_t)m_font, m_widthVariant, m_textOrientation << 3 | m_orientation << 2 | m_syntheticBold << 1 | m_syntheticOblique };
...@@ -318,8 +304,6 @@ private: ...@@ -318,8 +304,6 @@ private:
static NSFont* hashTableDeletedFontValue() { return reinterpret_cast<NSFont *>(-1); } static NSFont* hashTableDeletedFontValue() { return reinterpret_cast<NSFont *>(-1); }
#elif PLATFORM(WIN) #elif PLATFORM(WIN)
void platformDataInit(HFONT, float size, HDC, WCHAR* faceName); void platformDataInit(HFONT, float size, HDC, WCHAR* faceName);
#elif PLATFORM(GTK)
static PangoFont* hashTableDeletedFontValue() { return reinterpret_cast<PangoFont*>(-1); }
#endif #endif
public: public:
...@@ -335,8 +319,6 @@ private: ...@@ -335,8 +319,6 @@ private:
NSFont* m_font; NSFont* m_font;
#elif PLATFORM(WIN) #elif PLATFORM(WIN)
RefPtr<RefCountedGDIHandle<HFONT> > m_font; RefPtr<RefCountedGDIHandle<HFONT> > m_font;
#elif PLATFORM(GTK)
PangoFont* m_font;
#endif #endif
#if PLATFORM(CG) #if PLATFORM(CG)
...@@ -355,14 +337,6 @@ private: ...@@ -355,14 +337,6 @@ private:
#if PLATFORM(CAIRO) #if PLATFORM(CAIRO)
cairo_font_face_t* m_fontFace; cairo_font_face_t* m_fontFace;
cairo_scaled_font_t* m_scaledFont; cairo_scaled_font_t* m_scaledFont;
#if PLATFORM(GTK)
PangoContext* m_context;
#endif
#endif
#if PLATFORM(GTK)
static PangoFontMap* m_fontMap;
static GHashTable* m_hashTable;
#endif #endif
#if PLATFORM(CHROMIUM) && OS(DARWIN) #if PLATFORM(CHROMIUM) && OS(DARWIN)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment