Changeset 70675 in webkit
- Timestamp:
- Oct 27, 2010 11:05:20 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70669 r70675 1 2010-10-27 Kwang Yul Seo <skyul@company100.net> 2 3 Reviewed by James Robinson. 4 5 [BREWMP] Port graphics backend 6 https://bugs.webkit.org/show_bug.cgi?id=40275 7 8 Add PLATFORM(BREWMP) guard to skia's FontCustomPlatformData 9 to share OS(LINUX) implementation. 10 11 * loader/CachedFont.cpp: 12 * platform/graphics/skia/FontCustomPlatformData.cpp: 13 (WebCore::FontCustomPlatformData::~FontCustomPlatformData): 14 (WebCore::FontCustomPlatformData::fontPlatformData): 15 (WebCore::createFontCustomPlatformData): 16 * platform/graphics/skia/FontCustomPlatformData.h: 17 1 18 2010-10-27 Satish Sampath <satish@chromium.org> 2 19 -
trunk/WebCore/loader/CachedFont.cpp
r70250 r70675 28 28 #include "CachedFont.h" 29 29 30 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (OS(WINDOWS) || OS(LINUX) || OS(FREEBSD))) || PLATFORM(HAIKU) || OS(WINCE) || PLATFORM(ANDROID) 30 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (OS(WINDOWS) || OS(LINUX) || OS(FREEBSD))) || PLATFORM(HAIKU) || OS(WINCE) || PLATFORM(ANDROID) || PLATFORM(BREWMP) 31 31 #define STORE_FONT_CUSTOM_PLATFORM_DATA 32 32 #endif -
trunk/WebCore/platform/graphics/skia/FontCustomPlatformData.cpp
r70250 r70675 2 2 * Copyright (C) 2007 Apple Computer, Inc. 3 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. 4 * Copyright (C) 2010 Company 100, Inc. 4 5 * 5 6 * Redistribution and use in source and binary forms, with or without … … 37 38 #include "ChromiumBridge.h" 38 39 #include "OpenTypeUtilities.h" 39 #elif OS(LINUX) || OS(FREEBSD) 40 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 40 41 #include "SkStream.h" 41 42 #endif … … 48 49 #if OS(WINDOWS) 49 50 #include <objbase.h> 50 #elif OS(LINUX) || OS(FREEBSD) 51 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 51 52 #include <cstring> 52 53 #endif … … 59 60 if (m_fontReference) 60 61 RemoveFontMemResourceEx(m_fontReference); 61 #elif OS(LINUX) || OS(FREEBSD) 62 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 62 63 if (m_fontReference) 63 64 m_fontReference->unref(); … … 100 101 HFONT hfont = CreateFontIndirect(&logFont); 101 102 return FontPlatformData(hfont, size); 102 #elif OS(LINUX) || OS(FREEBSD) 103 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 103 104 ASSERT(m_fontReference); 104 105 return FontPlatformData(m_fontReference, "", size, bold && !m_fontReference->isBold(), italic && !m_fontReference->isItalic()); … … 124 125 #endif 125 126 126 #if OS(LINUX) || OS(FREEBSD) 127 #if OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 127 128 class RemoteFontStream : public SkStream { 128 129 public: … … 190 191 return 0; 191 192 return new FontCustomPlatformData(fontReference, fontName); 192 #elif OS(LINUX) || OS(FREEBSD) 193 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 193 194 RemoteFontStream* stream = new RemoteFontStream(buffer); 194 195 SkTypeface* typeface = SkTypeface::CreateFromStream(stream); -
trunk/WebCore/platform/graphics/skia/FontCustomPlatformData.h
r70250 r70675 41 41 #include "PlatformString.h" 42 42 #include <windows.h> 43 #elif OS(LINUX) || OS(FREEBSD) 43 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 44 44 #include "SkTypeface.h" 45 45 #endif … … 56 56 , m_name(name) 57 57 {} 58 #elif OS(LINUX) || OS(FREEBSD) 58 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 59 59 explicit FontCustomPlatformData(SkTypeface* typeface) 60 60 : m_fontReference(typeface) … … 72 72 HANDLE m_fontReference; 73 73 String m_name; 74 #elif OS(LINUX) || OS(FREEBSD) 74 #elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP) 75 75 SkTypeface* m_fontReference; 76 76 #endif
Note: See TracChangeset
for help on using the changeset viewer.