Changeset 47144 in webkit
- Timestamp:
- Aug 12, 2009 1:35:32 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r47143 r47144 1 2009-08-12 Maxime Simon <simon.maxime@gmail.com> 2 3 Reviewed by Eric Seidel. 4 5 [Haiku] Tiny modifications on WebCore files to allow Haiku port. 6 https://bugs.webkit.org/show_bug.cgi?id=28128 7 8 * bindings/js/ScriptControllerHaiku.cpp: Style cleanup. 9 * loader/CachedFont.cpp: Haiku behaves like Qt, Gtk, or Chromium, 10 so many PLATFORM(HAIKU) were added to these functions. 11 (WebCore::CachedFont::~CachedFont): 12 (WebCore::CachedFont::ensureCustomFontData): 13 (WebCore::CachedFont::platformDataFromCustomData): 14 (WebCore::CachedFont::allClientsRemoved): 15 * page/EventHandler.cpp: Like the mac and Qt port, Haiku doesn't need the 16 invertSenseOfTabsToLinks() function. 17 * page/haiku/DragControllerHaiku.cpp: Style cleanup. 18 * platform/image-decoders/ImageDecoder.h: For image decoding Haiku 19 behaves like Cairo or Wx, (not like Skia). 20 (WebCore::RGBA32Buffer::getAddr): 21 * platform/text/PlatformString.h: Adding the String(BString&) and BString() 22 methods specific to Haiku. 23 * platform/text/UnicodeRange.h: Haiku needs to include stdint.h. 24 * platform/text/haiku/TextBreakIteratorInternalICUHaiku.cpp: 25 (WebCore::currentSearchLocaleID): Missing function. 26 1 27 2009-08-12 Maxime Simon <simon.maxime@gmail.com> 2 28 -
trunk/WebCore/bindings/js/ScriptControllerHaiku.cpp
r46009 r47144 29 29 30 30 #include "PluginView.h" 31 #include "runtime.h" 31 32 #include "runtime_root.h" 32 #include "runtime.h"33 33 34 34 -
trunk/WebCore/loader/CachedFont.cpp
r46885 r47144 32 32 #include "DOMImplementation.h" 33 33 #include "FontPlatformData.h" 34 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) 34 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) || PLATFORM(HAIKU) 35 35 #include "FontCustomPlatformData.h" 36 36 #endif … … 61 61 CachedFont::~CachedFont() 62 62 { 63 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) 63 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) || PLATFORM(HAIKU) 64 64 delete m_fontData; 65 65 #endif … … 99 99 bool CachedFont::ensureCustomFontData() 100 100 { 101 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) 101 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) || PLATFORM(HAIKU) 102 102 #if ENABLE(SVG_FONTS) 103 103 ASSERT(!m_isSVGFont); … … 118 118 return FontPlatformData(size, bold, italic); 119 119 #endif 120 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) 120 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) || PLATFORM(HAIKU) 121 121 ASSERT(m_fontData); 122 122 return m_fontData->fontPlatformData(static_cast<int>(size), bold, italic, renderingMode); … … 174 174 void CachedFont::allClientsRemoved() 175 175 { 176 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) 176 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (PLATFORM(WIN_OS) || PLATFORM(LINUX))) || PLATFORM(HAIKU) 177 177 if (m_fontData) { 178 178 delete m_fontData; -
trunk/WebCore/page/EventHandler.cpp
r46815 r47144 2321 2321 2322 2322 2323 #if !PLATFORM(MAC) && !PLATFORM(QT) 2323 #if !PLATFORM(MAC) && !PLATFORM(QT) && !PLATFORM(HAIKU) 2324 2324 bool EventHandler::invertSenseOfTabsToLinks(KeyboardEvent*) const 2325 2325 { -
trunk/WebCore/page/haiku/DragControllerHaiku.cpp
r46011 r47144 33 33 34 34 35 namespace WebCore 36 { 35 namespace WebCore { 37 36 38 // FIXME: These values are straight out of DragControllerMac, so probably have 37 // FIXME: These values are straight out of DragControllerMac, so probably have 39 38 // little correlation with Haiku standards... 40 39 const int DragController::LinkDragBorderInset = 2; -
trunk/WebCore/platform/image-decoders/ImageDecoder.h
r46738 r47144 135 135 inline PixelData* getAddr(int x, int y) 136 136 { 137 #if PLATFORM(CAIRO) || PLATFORM(WX) 137 #if PLATFORM(CAIRO) || PLATFORM(WX) || PLATFORM(HAIKU) 138 138 return m_bytes.data() + (y * width()) + x; 139 139 #elif PLATFORM(SKIA) … … 161 161 } 162 162 163 #if PLATFORM(CAIRO) || PLATFORM(WX) 163 #if PLATFORM(CAIRO) || PLATFORM(WX) || PLATFORM(HAIKU) 164 164 Vector<PixelData> m_bytes; 165 165 IntSize m_size; // The size of the buffer. This should be the -
trunk/WebCore/platform/text/PlatformString.h
r46892 r47144 57 57 #endif 58 58 59 #if PLATFORM(HAIKU) 60 class BString; 61 #endif 62 59 63 namespace WebCore { 60 64 … … 228 232 String(const wxString&); 229 233 operator wxString() const; 234 #endif 235 236 #if PLATFORM(HAIKU) 237 String(const BString&); 238 operator BString() const; 230 239 #endif 231 240 -
trunk/WebCore/platform/text/UnicodeRange.h
r29663 r47144 35 35 #ifndef UnicodeRange_H 36 36 #define UnicodeRange_H 37 38 #if PLATFORM(HAIKU) 39 #include "stdint.h" 40 #endif 37 41 38 42 #include <wtf/unicode/Unicode.h> -
trunk/WebCore/platform/text/haiku/TextBreakIteratorInternalICUHaiku.cpp
r46008 r47144 27 27 namespace WebCore { 28 28 29 const char* currentSearchLocaleID() 30 { 31 notImplemented(); 32 return ""; 33 } 34 29 35 const char* currentTextBreakLocaleID() 30 36 {
Note: See TracChangeset
for help on using the changeset viewer.