Ticket #230: patchdoduo_win32_msvc.patch
| File patchdoduo_win32_msvc.patch, 100.3 kB (added by mickael.leforestier, 5 months ago) |
|---|
-
versionPropre/Doduo_owb/BAL/Base/NotImplemented.h
old new 25 25 26 26 #ifndef NotImplemented_h 27 27 #define NotImplemented_h 28 28 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 29 29 #include "Logging.h" 30 30 #include <Assertions.h> 31 #else 32 #include "BCLoggingWK.h" 33 #include "BCAssertionsWK.h" 34 #endif 31 35 32 36 #if PLATFORM(GTK) 33 37 //#define supressNotImplementedWarning() getenv("DISABLE_NI_WARNING") -
versionPropre/Doduo_owb/BAL/Base/wtf/Platform.h
old new 105 105 #elif PLATFORM(DARWIN) && !defined(__OWBAL_PLATFORM_MACPORT__) 106 106 #define WTF_PLATFORM_MAC 1 107 107 #elif PLATFORM(WIN_OS) 108 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 108 109 #define WTF_PLATFORM_WIN 1 110 #else 111 #define WTF_PLATFORM_WIN 0 112 #endif 109 113 #endif 110 114 111 115 /* Graphics engines */ … … 208 212 209 213 /* multiple threads only supported on Mac for now */ 210 214 #if PLATFORM(MAC) || PLATFORM(WIN) 215 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 211 216 #define WTF_USE_MULTIPLE_THREADS 1 217 #else 218 #define WTF_USE_MULTIPLE_THREADS 0 219 #endif 212 220 #endif 213 221 214 222 /* for Unicode, KDE uses Qt */ -
versionPropre/Doduo_owb/BAL/OWBAL/Concretizations/Facilities/Posix/BCFileSystemPosix.cpp
old new 33 33 #include "PlatformString.h" 34 34 35 35 #include <sys/stat.h> 36 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 36 37 #include <libgen.h> 37 38 #include <unistd.h> 39 #else 40 #define rmdir rmdir_win 41 bool rmdir_win(const char * t){ return 0;} 42 #define F_OK 1 43 bool access(const char * t,int i){ return true;} 44 #define S_IRWXU 0 45 bool mkdir(const char * t,int i){ return true;} 46 const char* dirname(const char * t){ return t;} 47 #endif 38 48 39 49 namespace OWBAL { 40 50 -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Events/SDL/BCPlatformKeyboardEventSDL.cpp
old new 139 139 case SDLK_DELETE: 140 140 return "U+00007F"; 141 141 default: 142 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 142 143 return WebCore::String::format("U+%06X", WTF::Unicode::toUpper(keyCode)); 144 #else 145 return WebCore::String::format("U+%04X",WTF::Unicode::toUpper((unsigned short)keyCode)); 146 #endif 143 147 } 144 148 } 145 149 … … 489 493 case SDLK_RSUPER: 490 494 return VK_RWIN; 491 495 default: 496 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 492 497 DS_WAR("ARGH!!! No virtual key!!!\n"); 498 #endif 493 499 return 0; 494 500 } 495 501 } … … 705 711 WebCore::String aText(aSrc); 706 712 WebCore::String aUnmodifiedText(aSrc); 707 713 WebCore::String aKeyIdentifier = keyIdentifierForSDLKeyCode(event->keysym.sym); 708 709 714 m_text = aText; 710 715 m_unmodifiedText = aUnmodifiedText; 711 716 m_keyIdentifier = aKeyIdentifier; -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Graphics/SDL/BCGraphicsContextSDL.cpp
old new 46 46 #include "SDL.h" 47 47 #include <SDL/SDL_gfxPrimitives.h> 48 48 #include <SDL/SDL_rotozoom.h> 49 49 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 50 #define DS_WAR() void(0) 51 typedef short int16_t; 52 typedef int16_t Sint16; 53 typedef unsigned char uint8_t; 54 typedef uint8_t Uint8; 55 extern "C" int lineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 56 extern "C" int ellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 57 extern "C" int rectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 58 extern "C" int filledPolygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 59 extern SDL_Surface *zoomSurface(SDL_Surface * src, double zoomx, double zoomy, int smooth); 60 #endif 50 61 #ifndef M_PI 51 62 #define M_PI 3.14159265358979323846 52 63 #endif -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Graphics/SDL/BCImageSDL.cpp
old new 36 36 #include "SDL.h" 37 37 #include <SDL/SDL_gfxPrimitives.h> 38 38 #include <SDL/SDL_rotozoom.h> 39 39 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 40 extern SDL_Surface *zoomSurface(SDL_Surface * src, double zoomx, double zoomy, int smooth); 41 #endif 40 42 // This function loads resources from WebKit 41 43 Vector<char> loadResourceIntoArray(const char*); 42 44 -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Graphics/SDL/BCIntPointSDL.cpp
old new 27 27 */ 28 28 #include "config.h" 29 29 #include "IntPoint.h" 30 #ifndef __NOT_USE_DEEPSEE__ 30 31 #include DEEPSEE_INCLUDE 32 #endif 31 33 #include "stdio.h" 32 34 33 35 namespace WKAL { -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Widgets/SDL/BCCursorSDL.cpp
old new 61 61 { 62 62 int width = 16, height = 24; 63 63 int i, row, col; 64 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 64 65 Uint8 data[4 * height]; 65 66 Uint8 mask[4 * height]; 67 #else 68 Uint8 data[4 * 24]; 69 Uint8 mask[4 * 24]; 70 #endif 66 71 int hot_x, hot_y; 67 72 68 73 i = -1; -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Widgets/SDL/BCPasteboardSDL.cpp
old new 27 27 */ 28 28 29 29 #include "config.h" 30 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 31 #include "Range.h" 32 #endif 30 33 #include "Pasteboard.h" 31 34 32 35 #include "CString.h" -
versionPropre/Doduo_owb/BAL/WKAL/Concretizations/Widgets/SDL/BCPlatformScreenSDL.cpp
old new 32 32 33 33 #include "Widget.h" 34 34 #include "SDL.h" 35 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 36 #include <wtf/Assertions.h> 37 #endif 35 38 36 39 namespace WKAL { 37 40 -
versionPropre/Doduo_owb/CMakeLists.txt
old new 41 41 # Global switch for OWBAL support for Mac port 42 42 OPTION (OWBAL_PLATFORM_MACPORT "OWBAL support for Mac port" OFF) 43 43 44 44 45 # Global switch for OWBAL support for Graphics backend 45 46 SET (OWBAL_PLATFORM_GRAPHICS "GTK" CACHE STRING "Graphics support. (GTK/SDL)") 46 47 … … 97 98 # Threading support 98 99 SET (WEBKIT_USE_THREADING "GTK" CACHE STRING "Threading support. (GTK/PTHREADS/NONE)") 99 100 101 # Global switch for OWBAL support for Mac port 102 OPTION (OWBAL_PLATFORM_WIN32PORT "OWBAL support for Win32 port" OFF) 103 104 # Global switch for WinLib directory 105 SET (WINLIB_DIRECTORY "WINLIB" CACHE STRING "Compile WebKit with win32 Library/header.") 106 107 IF (OWBAL_PLATFORM_WIN32PORT) 108 ADD_DEFINITIONS(-D __OWBAL_PLATFORM_WIN32PORT__) 109 ADD_DEFINITIONS(-D __NOT_USE_DEEPSEE__) 110 ENDIF(OWBAL_PLATFORM_WIN32PORT) 111 100 112 INCLUDE (CMakeListsCustomer.txt OPTIONAL) 101 113 102 114 ####################################### … … 171 183 MESSAGE (SEND_ERROR "gthread-2.0 ${MESSAGE_NOT_FOUND}\n${MESSAGE_CHOOSE} gthread package.") 172 184 ENDIF (NOT GTHREAD_FOUND) 173 185 ELSEIF (${OWBAL_PLATFORM_GRAPHICS} STREQUAL "SDL") 186 IF (NOT OWBAL_PLATFORM_WIN32PORT) 174 187 PKG_CHECK_MODULES (SDL REQUIRED sdl) 175 188 IF (NOT SDL_FOUND) 176 MESSAGE (SEND_ERROR "sdl ${MESSAGE_NOT_FOUND}\n${MESSAGE_CHOOSE} sdl library.") 189 MESSAGE (SEND_ERROR "sdl ${MESSAGE_NOT_FOUND}\n 190 ${MESSAGE_CHOOSE} sdl library.") 177 191 ENDIF (NOT SDL_FOUND) 192 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 178 193 ENDIF (${OWBAL_PLATFORM_GRAPHICS} STREQUAL "GTK") 179 194 180 195 IF (WEBKIT_USE_DATABASE) … … 234 249 ADD_DEFINITIONS (-DUSE_CONSERVATIVE_GC=0) 235 250 ADD_DEFINITIONS (-DD_MULTISCAN_FILES_SUPPORTED) 236 251 # FIXME: what about this flag and compilation for MAC or Win32? 252 IF (NOT OWBAL_PLATFORM_WIN32PORT) 237 253 ADD_DEFINITIONS (-DLINUX) 254 ELSEIF(NOT OWBAL_PLATFORM_WIN32PORT) 255 ADD_DEFINITIONS (-DWIN32) 256 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 257 238 258 ADD_DEFINITIONS (-DWTF_CHANGES) 239 259 ADD_DEFINITIONS (-DUSE_SYSTEM_MALLOC) 240 260 ADD_DEFINITIONS (-DWTF_USE_ICU_UNICODE=1) … … 277 297 ENDIF (WEBKIT_USE_CC_PIC) 278 298 279 299 IF (NOT WEBKIT_USE_CC_EXCEPTIONS) 300 IF (NOT OWBAL_PLATFORM_WIN32PORT) 280 301 ADD_DEFINITIONS (-fno-exceptions) 302 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 281 303 ENDIF (NOT WEBKIT_USE_CC_EXCEPTIONS) 282 304 283 305 IF (NOT WEBKIT_USE_CC_RTTI) 306 IF (NOT OWBAL_PLATFORM_WIN32PORT) 284 307 ADD_DEFINITIONS (-fno-rtti) 308 ELSEIF(NOT OWBAL_PLATFORM_WIN32PORT) 309 ADD_DEFINITIONS (-D/GR-) 310 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 285 311 ENDIF (NOT WEBKIT_USE_CC_RTTI) 286 312 287 313 IF (${WEBKIT_DEBUG} MATCHES "^DEBUG*") 288 314 ADD_DEFINITIONS (-DENABLE_FTPDIR=1) 315 IF (NOT OWBAL_PLATFORM_WIN32PORT) 289 316 ADD_DEFINITIONS (-W) 290 317 ADD_DEFINITIONS (-Wall) 318 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 291 319 ADD_DEFINITIONS (-DDEBUG_LAYOUTTEST) 320 IF (NOT OWBAL_PLATFORM_WIN32PORT) 292 321 ADD_DEFINITIONS (-g) 322 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 293 323 ADD_DEFINITIONS (-DBAL_LOG) 324 IF (NOT OWBAL_PLATFORM_WIN32PORT) 294 325 ADD_DEFINITIONS (-Wno-unused-parameter) 295 326 ADD_DEFINITIONS (-Wno-unused-variable) 327 ENDIF (NOT OWBAL_PLATFORM_WIN32PORT) 296 328 ENDIF (${WEBKIT_DEBUG} MATCHES "^DEBUG*") 297 329 IF (${WEBKIT_DEBUG} STREQUAL "DEBUG_GCC3.X") 298 330 ADD_DEFINITIONS (-funit-at-a-time) … … 352 384 ADD_DEFINITIONS (-DWTF_USE_BALI18N=1) 353 385 ENDIF (NOT ${WEBKIT_USE_I18N} STREQUAL "ICU") 354 386 355 IF (NOT OWBAL_PLATFORM_MACPORT )387 IF (NOT OWBAL_PLATFORM_MACPORT OR NOT OWBAL_PLATFORM_WIN32PORT) 356 388 ADD_DEFINITIONS (-pthread) 357 ENDIF (NOT OWBAL_PLATFORM_MACPORT )389 ENDIF (NOT OWBAL_PLATFORM_MACPORT OR NOT OWBAL_PLATFORM_WIN32PORT) 358 390 359 391 IF (WEBKIT_OFFLINE_WEB_APPLICATIONS) 360 392 ADD_DEFINITIONS (-DENABLE_OFFLINE_WEB_APPLICATIONS=1) … … 364 396 ####################################### 365 397 # DEEPSEE Stuff # 366 398 ####################################### 399 IF (NOT OWBAL_PLATFORM_WIN32PORT) 367 400 OPTION (DEEPSEE_USE_FAKED_DEEPSEE "Use an existing faked_deepsee.h" ON) 368 401 SET (DEEPSEE_USE_FAKED_DEEPSEE_PATH "BAL/Includes/FakedDeepsee.h" CACHE STRING "Define your faked_deepsee.h path and name" ) 369 402 #include DeepSee cmake commands if available … … 377 410 ADD_DEFINITIONS (-DOWB_FAILSAFE_WITHOUT_DEEPSEE) 378 411 ENDIF (OWB_FAILSAFE_WITHOUT_DEEPSEE) 379 412 ENDIF (NOT DEEPSEE_ENABLE) 380 413 ENDIF(NOT OWBAL_PLATFORM_WIN32PORT) 381 414 382 415 MACRO (OWBLN _in_FILE _dest_DIR _keep _noLink ) 383 416 EXECUTE_PROCESS (COMMAND ${CMAKE_SOURCE_DIR}/BAL/scripts/create_link.sh ${_in_FILE} ${_dest_DIR} ${_keep} ${CMAKE_CURRENT_SOURCE_DIR} ${_noLink} -
versionPropre/Doduo_owb/JavaScriptCore/wtf/Platform.h
old new 36 36 37 37 /* Operating systems - low-level dependencies */ 38 38 39 40 39 41 /* PLATFORM(DARWIN) */ 40 42 /* Operating system level dependencies for Mac OS X / Darwin that should */ 41 43 /* be used regardless of operating environment */ … … 101 103 #define WTF_PLATFORM_WIN 1 102 104 #endif 103 105 106 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 107 #define WTF_PLATFORM_WIN 0 108 #endif 104 109 /* Graphics engines */ 105 110 106 111 /* PLATFORM(CG) */ -
versionPropre/Doduo_owb/JavaScriptCore/wtf/RetainPtr.h
old new 24 24 #define RetainPtr_h 25 25 26 26 #include <algorithm> 27 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 27 28 #include <CoreFoundation/CoreFoundation.h> 29 #endif 28 30 29 31 #ifdef __OBJC__ 30 32 #import <Foundation/Foundation.h> -
versionPropre/Doduo_owb/WebCore/bindings/js/JSEventCustom.cpp
old new 54 54 #include "XMLHttpRequestProgressEvent.h" 55 55 #include "kjs_events.h" 56 56 57 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 58 #define ENABLE_DOM_STORAGE 0 59 #endif 60 57 61 #if ENABLE(DOM_STORAGE) 58 62 #include "JSStorageEvent.h" 59 63 #include "StorageEvent.h" -
versionPropre/Doduo_owb/WebCore/bridge/bal/bal_class.cpp
old new 30 30 #include "config.h" 31 31 #include "identifier.h" 32 32 33 34 #include "bal_runtime.h" 33 35 #include "bal_class.h" 34 36 #include "bal_instance.h" 35 37 #include "bal_runtime.h" 36 37 38 #include <bal_object.h> 38 39 39 40 namespace KJS { -
versionPropre/Doduo_owb/WebCore/bridge/bal/bal_class.h
old new 55 55 public: 56 56 static BalClass* classForObject(BalObject*); 57 57 virtual ~BalClass(); 58 59 58 virtual const char* name() const; 60 59 virtual MethodList methodsNamed(const Identifier&, Instance*) const; 61 60 virtual Field* fieldNamed(const Identifier&, Instance*) const; -
versionPropre/Doduo_owb/WebCore/bridge/bal/bal_instance.cpp
old new 27 27 */ 28 28 29 29 #include "config.h" 30 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 31 #include "bal_runtime.h" 32 #include "StringExtras.h" 33 #endif 30 34 #include "bal_instance.h" 31 35 32 36 #include "bal_class.h" 33 #include "bal_runtime.h"34 #include "list.h"35 37 36 #include "bal_object.h" 38 #include "list.h" 39 # 40 #include <bal_object.h> 37 41 #include "balValuePrivate.h" 42 #include "bal_runtime.h" 43 #include "runtime_object.h" 44 #include "jsglobalobject.h" 38 45 #include "wtf/HashMap.h" 39 46 #include "object_object.h" 40 47 … … 169 176 170 177 BalValue *val = m_object->invoke(ident, cArgs); 171 178 cArgs.clear(); 172 173 179 return val->d->getValue(); 180 174 181 } 175 182 176 183 … … 193 200 JSValue* BalInstance::stringValue() const 194 201 { 195 202 char buf[1024]; 203 196 204 snprintf(buf, sizeof(buf), "BalObject %p (%s)", m_object, m_class->name()); 197 205 return jsString(buf); 198 206 } -
versionPropre/Doduo_owb/WebCore/bridge/bal/bal_instance.h
old new 90 90 virtual BindingLanguage getBindingLanguage() const { return BalLanguage; } 91 91 static JSObject* getRuntimeObject(PassRefPtr<BalInstance>); 92 92 private: 93 BalInstance(BalObject*, PassRefPtr<RootObject>);94 93 94 BalInstance(BalObject*, PassRefPtr<RootObject>); 95 95 mutable BalClass* m_class; 96 96 BalObject *m_object; 97 97 }; -
versionPropre/Doduo_owb/WebCore/bridge/bal/bal_runtime.h
old new 42 42 #define BINDINGS_BAL_RUNTIME_H_ 43 43 44 44 #include "runtime.h" 45 45 46 #include "bal_object.h" 46 47 47 48 namespace KJS { -
versionPropre/Doduo_owb/WebCore/config.h
old new 90 90 #define AVOID_STATIC_CONSTRUCTORS 1 91 91 #endif 92 92 93 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 94 #define WTF_PLATFORM_CG 0 95 #define WTF_USE_CFNETWORK 0 96 #define WTF_PLATFORM_CF 0 97 #endif 98 93 99 #if PLATFORM(WIN) 94 100 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1 95 #define WTF_PLATFORM_CG 196 101 #undef WTF_PLATFORM_CAIRO 97 #define WTF_USE_CFNETWORK 198 102 #undef WTF_USE_WININET 103 #define WTF_PLATFORM_CG 1 104 #define WTF_USE_CFNETWORK 1 99 105 #define WTF_PLATFORM_CF 1 100 106 #define WTF_USE_PTHREADS 0 101 107 #endif -
versionPropre/Doduo_owb/WebCore/dom/EventNames.h
old new 21 21 22 22 #ifndef EventNames_h 23 23 #define EventNames_h 24 25 24 #include "AtomicString.h" 26 25 26 27 27 namespace WebCore { namespace EventNames { 28 28 29 29 #define DOM_EVENT_NAMES_FOR_EACH(macro) \ -
versionPropre/Doduo_owb/WebCore/html/CanvasPattern.h
old new 25 25 26 26 #ifndef CanvasPattern_h 27 27 #define CanvasPattern_h 28 28 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 29 #include "config.h" 30 #define WTF_PLATFORM_CG 0 31 #define WTF_USE_CFNETWORK 0 32 #define WTF_PLATFORM_CF 0 33 #define WTF_PLATFORM_WIN 0 34 #define WTF_PLATFORM_CAIRO 0 35 #endif 29 36 #include "CachedResourceClient.h" 30 37 #include <wtf/PassRefPtr.h> 31 38 #include <wtf/RefCounted.h> -
versionPropre/Doduo_owb/WebCore/loader/FTPDirectoryDocument.cpp
old new 39 39 #include "SharedBuffer.h" 40 40 #include "Text.h" 41 41 42 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 43 #define localtime_r(x,y) localtime_s(y,x) 44 #endif 45 42 46 // On Win, the threadsafe *_r functions need to be gotten from pthreads. 43 47 #if COMPILER(MSVC) && USE(PTHREADS) 44 48 #include <pthread.h> -
versionPropre/Doduo_owb/WebCore/loader/FTPDirectoryParser.cpp
old new 24 24 #if ENABLE(FTPDIR) 25 25 #include "FTPDirectoryParser.h" 26 26 27 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 28 #define gmtime_r(x,y) gmtime_s(y,x) 29 #endif 30 27 31 // On Win, the threadsafe *_r functions need to be gotten from pthreads. 28 32 #if COMPILER(MSVC) && USE(PTHREADS) 29 33 #include <pthread.h> -
versionPropre/Doduo_owb/WebCore/page/ContextMenuController.cpp
old new 55 55 #include "TextIterator.h" 56 56 #include "WindowFeatures.h" 57 57 #include "markup.h" 58 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 59 #define WTF_PLATFORM_GTK 0 60 #define WTF_PLATFORM_BAL 0 61 #endif 58 62 59 63 namespace WebCore { 60 64 -
versionPropre/Doduo_owb/WebCore/page/EventHandler.h
old new 29 29 #include "DragActions.h" 30 30 #include "FocusDirection.h" 31 31 #include "PlatformMouseEvent.h" 32 #include "ScrollTypes.h"33 32 #include "Timer.h" 34 #include <wtf/Forward.h>33 #include "ScrollTypes.h" 35 34 #include <wtf/Noncopyable.h> 36 #include <wtf/Platform.h>37 35 #include <wtf/RefPtr.h> 36 #include <wtf/Forward.h> 37 #include <wtf/Platform.h> 38 38 39 39 #if PLATFORM(MAC) 40 40 #include "WebCoreKeyboardUIMode.h" -
versionPropre/Doduo_owb/WebCore/page/FrameView.cpp
old new 328 328 // Protect the view from being deleted during layout (in recalcStyle) 329 329 RefPtr<FrameView> protector(this); 330 330 331 int i=9; 332 331 333 if (!m_frame) { 332 334 // FIXME: Do we need to set m_size.width here? 333 335 // FIXME: Should we set m_size.height here too? … … 335 337 return; 336 338 } 337 339 340 i += (int) &m_frame; 341 if(!i) 342 return; 343 338 344 // we shouldn't enter layout() while painting 339 345 ASSERT(!m_frame->isPainting()); 340 346 if (m_frame->isPainting()) -
versionPropre/Doduo_owb/WebCore/page/FrameView.h
old new 147 147 #if PLATFORM(WIN) || PLATFORM(GTK) || PLATFORM(QT) || PLATFORM(BAL) 148 148 void layoutIfNeededRecursive(); 149 149 #endif 150 151 150 private: 152 151 void init(); 153 152 -
versionPropre/Doduo_owb/WebCore/page/Page.h
old new 26 26 #include "ContextMenuController.h" 27 27 #include "FrameLoaderTypes.h" 28 28 #include "PlatformString.h" 29 #include <wtf/HashSet.h> 30 #include <wtf/OwnPtr.h> 29 31 #if PLATFORM(MAC) 30 32 #include "SchedulePair.h" 31 33 #endif 32 #include <wtf/HashSet.h> 33 #include <wtf/OwnPtr.h> 34 34 35 35 36 #if PLATFORM(WIN) || (PLATFORM(WX) && PLATFORM(WIN_OS)) 36 37 typedef struct HINSTANCE__* HINSTANCE; -
versionPropre/Doduo_owb/WebCore/platform/ContextMenuItem.h
old new 26 26 #ifndef ContextMenuItem_h 27 27 #define ContextMenuItem_h 28 28 29 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 30 #define WTF_PLATFORM_CG 0 31 #define WTF_USE_CFNETWORK 0 32 #define WTF_PLATFORM_CF 0 33 #define WTF_PLATFORM_WIN 0 34 #include "baltypesdl.h" 35 #include "BALbase.h" 36 37 #endif 38 29 39 #include "PlatformMenuDescription.h" 30 40 #include "PlatformString.h" 31 41 #include <wtf/OwnPtr.h> 32 42 43 33 44 #if PLATFORM(MAC) 34 45 #include <wtf/RetainPtr.h> 35 46 … … 170 181 #elif PLATFORM(WX) 171 182 typedef wxMenuItem* PlatformMenuItemDescription; 172 183 #endif 184 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 185 struct PlatformMenuItemDescription { 186 PlatformMenuItemDescription() 187 : type(ActionType) 188 , action(ContextMenuItemTagNoAction) 189 , subMenu(0) 190 , checked(false) 191 , enabled(true) 192 {} 173 193 194 ContextMenuItemType type; 195 ContextMenuAction action; 196 String title; 197 void* subMenu; 198 bool checked; 199 bool enabled; 200 }; 201 #endif 174 202 class ContextMenuItem { 175 203 public: 176 204 ContextMenuItem(PlatformMenuItemDescription); -
versionPropre/Doduo_owb/WebCore/platform/Cursor.h
old new 28 28 29 29 #include <wtf/Platform.h> 30 30 31 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 32 #define WTF_PLATFORM_CG 0 33 #define WTF_USE_CFNETWORK 0 34 #define WTF_PLATFORM_CF 0 35 #define WTF_PLATFORM_WIN 0 36 #include "BALbase.h" 37 #endif 38 31 39 #if PLATFORM(WIN) 32 40 typedef struct HICON__* HICON; 33 41 typedef HICON HCURSOR; … … 77 85 #elif PLATFORM(WX) 78 86 typedef wxCursor* PlatformCursor; 79 87 #else 88 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 80 89 typedef void* PlatformCursor; 81 90 #endif 91 #endif 82 92 83 93 class Cursor { 84 94 public: … … 87 97 : m_impl(0) 88 98 #endif 89 99 { } 90 91 100 Cursor(Image*, const IntPoint& hotspot); 92 101 Cursor(const Cursor&); 93 102 ~Cursor(); -
versionPropre/Doduo_owb/WebCore/platform/DragImage.h
old new 29 29 #include "IntSize.h" 30 30 #include "FloatSize.h" 31 31 32 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 33 #include "baltypesdl.h" 34 #define WTF_PLATFORM_CG 0 35 #define WTF_USE_CFNETWORK 0 36 #define WTF_PLATFORM_CF 0 37 #define WTF_PLATFORM_WIN 0 38 #endif 39 32 40 #if PLATFORM(MAC) 33 41 #include <wtf/RetainPtr.h> 34 42 #ifdef __OBJC__ … … 70 78 typedef void* DragImageRef; 71 79 #endif 72 80 81 73 82 IntSize dragImageSize(DragImageRef); 74 83 75 84 //These functions should be memory neutral, eg. if they return a newly allocated image, -
versionPropre/Doduo_owb/WebCore/platform/FileSystem.h
old new 30 30 #ifndef FileSystem_h 31 31 #define FileSystem_h 32 32 33 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 34 #define WTF_PLATFORM_WIN 0 35 #endif 36 33 37 #if PLATFORM(GTK) 34 38 #include <gmodule.h> 35 39 #endif -
versionPropre/Doduo_owb/WebCore/platform/NotImplemented.h
old new 27 27 #define NotImplemented_h 28 28 29 29 #include "Logging.h" 30 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 30 31 #include <Assertions.h> 32 #endif 31 33 32 34 #if PLATFORM(GTK) 33 35 #define supressNotImplementedWarning() getenv("DISABLE_NI_WARNING") -
versionPropre/Doduo_owb/WebCore/platform/Pasteboard.h
old new 120 120 #if PLATFORM(QT) 121 121 bool m_selectionMode; 122 122 #endif 123 123 124 }; 124 125 125 126 } // namespace WebCore -
versionPropre/Doduo_owb/WebCore/platform/PlatformMenuDescription.h
old new 42 42 class wxMenu; 43 43 #endif 44 44 45 45 46 namespace WebCore { 46 47 47 48 #if PLATFORM(MAC) … … 56 57 #elif PLATFORM(WX) 57 58 typedef wxMenu* PlatformMenuDescription; 58 59 #endif 60 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 61 typedef void* PlatformMenuDescription; 62 #endif 63 59 64 60 65 } // namespace 61 66 -
versionPropre/Doduo_owb/WebCore/platform/PlatformMouseEvent.h
old new 29 29 #include "IntPoint.h" 30 30 #include <wtf/Platform.h> 31 31 32 32 33 #if PLATFORM(MAC) 33 34 #ifdef __OBJC__ 34 35 @class NSEvent; -
versionPropre/Doduo_owb/WebCore/platform/PlatformWheelEvent.h
old new 28 28 29 29 #include "IntPoint.h" 30 30 31 31 32 #if PLATFORM(MAC) 32 33 #ifdef __OBJC__ 33 34 @class NSEvent; … … 100 101 #if PLATFORM(WX) 101 102 PlatformWheelEvent(const wxMouseEvent&, const wxPoint&); 102 103 #endif 103 104 104 private: 105 105 IntPoint m_position; 106 106 IntPoint m_globalPosition; -
versionPropre/Doduo_owb/WebCore/platform/PopupMenu.h
old new 27 27 #include "PopupMenuClient.h" 28 28 #include <wtf/PassRefPtr.h> 29 29 30 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 31 #define WTF_PLATFORM_CG 0 32 #define WTF_USE_CFNETWORK 0 33 #define WTF_PLATFORM_CF 0 34 #define WTF_PLATFORM_WIN 0 35 #endif 36 30 37 #if PLATFORM(MAC) 31 38 #include <wtf/RetainPtr.h> 32 39 #ifdef __OBJC__ … … 72 79 , public wxEvtHandler 73 80 #endif 74 81 { 82 75 83 public: 76 84 static PassRefPtr<PopupMenu> create(PopupMenuClient* client) { return new PopupMenu(client); } 77 85 ~PopupMenu(); 78 79 86 void disconnectClient() { m_popupClient = 0; } 80 87 81 88 void show(const IntRect&, FrameView*, int index); … … 86 93 PopupMenuClient* client() const { return m_popupClient; } 87 94 88 95 static bool itemWritingDirectionIsNatural(); 89 90 96 #if PLATFORM(WIN) 91 97 PlatformScrollbar* scrollBar() const { return m_scrollBar.get(); } 92 98 … … 176 182 void OnMenuItemSelected(wxCommandEvent&); 177 183 #endif 178 184 185 179 186 }; 180 187 181 188 } -
versionPropre/Doduo_owb/WebCore/platform/ScrollView.h
old new 27 27 #define ScrollView_h 28 28 29 29 #include "IntRect.h" 30 #include "ScrollTypes.h"31 30 #include "Widget.h" 31 32 33 #include "ScrollTypes.h" 34 32 35 #include <wtf/HashSet.h> 33 36 34 37 #if PLATFORM(MAC) && defined __OBJC__ … … 195 198 public: 196 199 void setGtkAdjustments(GtkAdjustment* hadj, GtkAdjustment* vadj); 197 200 #endif 198 199 201 #if PLATFORM(WX) 200 202 public: 201 203 virtual void setNativeWindow(wxWindow*); -
versionPropre/Doduo_owb/WebCore/platform/SharedBuffer.h
old new 30 30 #include <wtf/Forward.h> 31 31 #include <wtf/Vector.h> 32 32 33 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 34 #define WTF_PLATFORM_CF 0 35 #endif 36 33 37 #if PLATFORM(CF) 34 38 #include <wtf/RetainPtr.h> 35 39 #endif -
versionPropre/Doduo_owb/WebCore/platform/SharedTimer.h
old new 38 38 39 39 void setSharedTimerFireTime(double fireTime); 40 40 void stopSharedTimer(); 41 void fireTimerIfNeeded(); 41 42 42 43 } 43 44 -
versionPropre/Doduo_owb/WebCore/platform/Timer.h
old new 37 37 38 38 class TimerBase : Noncopyable { 39 39 public: 40 TimerBase();41 virtual ~TimerBase();42 40 43 41 void start(double nextFireInterval, double repeatInterval); 44 42 TimerBase(); 43 virtual ~TimerBase(); 44 void stop(); 45 bool isActive() const; 46 double nextFireInterval() const; 47 static void fireTimersInNestedEventLoop(); 45 48 void startRepeating(double repeatInterval) { start(repeatInterval, repeatInterval); } 46 49 void startOneShot(double interval) { start(interval, 0); } 47 50 48 void stop();49 bool isActive() const;50 51 51 double nextFireInterval() const;52 52 double repeatInterval() const { return m_repeatInterval; } 53 53 54 54 void augmentRepeatInterval(double delta) { setNextFireTime(m_nextFireTime + delta); m_repeatInterval += delta; } 55 55 56 static void fireTimersInNestedEventLoop();56 57 57 58 58 private: 59 59 virtual void fired() = 0; 60 60 61 61 void checkConsistency() const; 62 62 void checkHeapIndex() const; 63 64 63 void setNextFireTime(double); 65 66 64 bool inHeap() const { return m_heapIndex != -1; } 67 65 68 66 void heapDecreaseKey(); … … 105 103 // Set to true to prevent any timers from firing. 106 104 // When set back to false, timers that were deferred will fire. 107 105 bool isDeferringTimers(); 106 108 107 void setDeferringTimers(bool); 109 108 110 109 } -
versionPropre/Doduo_owb/WebCore/platform/graphics/AffineTransform.h
old new 26 26 #ifndef AffineTransform_h 27 27 #define AffineTransform_h 28 28 29 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 30 #define WTF_PLATFORM_CG 0 31 #define WTF_USE_CFNETWORK 0 32 #define WTF_PLATFORM_CF 0 33 #define WTF_PLATFORM_WIN 0 34 #define WTF_PLATFORM_CAIRO 0 35 #endif 36 29 37 #if PLATFORM(CG) 30 38 #include <CoreGraphics/CGAffineTransform.h> 31 39 #elif PLATFORM(QT) 32 40 #include <QMatrix> 33 41 #elif PLATFORM(CAIRO) 42 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 34 43 #include <cairo.h> 44 #endif 35 45 #elif PLATFORM(WX) && USE(WXGC) 36 46 #include <wx/defs.h> 37 47 #include <wx/graphics.h> … … 110 120 #elif PLATFORM(QT) 111 121 operator QMatrix() const; 112 122 #elif PLATFORM(CAIRO) 123 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 113 124 operator cairo_matrix_t() const; 125 #endif 114 126 #elif PLATFORM(WX) && USE(WXGC) 115 127 operator wxGraphicsMatrix() const; 116 128 #endif … … 126 138 #elif PLATFORM(QT) 127 139 QMatrix m_transform; 128 140 #elif PLATFORM(CAIRO) 141 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 129 142 cairo_matrix_t m_transform; 143 #endif 130 144 #elif PLATFORM(WX) && USE(WXGC) 131 145 wxGraphicsMatrix m_transform; 132 146 #endif -
versionPropre/Doduo_owb/WebCore/platform/graphics/GraphicsContextPrivate.h
old new 41 41 , shadowBlur(0) 42 42 { 43 43 } 44 45 44 Font font; 46 45 StrokeStyle strokeStyle; 47 46 float strokeThickness; -
versionPropre/Doduo_owb/WebCore/platform/graphics/Image.h
old new 34 34 #include <wtf/PassRefPtr.h> 35 35 #include "SharedBuffer.h" 36 36 37 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 38 #define WTF_PLATFORM_CG 0 39 #define WTF_USE_CFNETWORK 0 40 #define WTF_PLATFORM_CF 0 41 #define WTF_PLATFORM_WIN 0 42 #endif 43 44 37 45 #if PLATFORM(MAC) 38 46 #ifdef __OBJC__ 39 47 @class NSImage; -
versionPropre/Doduo_owb/WebCore/platform/graphics/ImageSource.h
old new 28 28 29 29 #include <wtf/Noncopyable.h> 30 30 #include <wtf/Vector.h> 31 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 32 #include "baltypesdl.h" 33 #endif 31 34 32 35 #if PLATFORM(WX) 33 36 class wxBitmap; … … 65 68 #else 66 69 class ImageDecoder; 67 70 typedef ImageDecoder* NativeImageSourcePtr; 71 #ifndef __OWBAL_PLATFORM_WIN32PORT__ 68 72 typedef cairo_surface_t* NativeImagePtr; 73 #else 74 typedef SDL_Surface* NativeImagePtr; 75 #endif 76 69 77 #endif 70 78 71 79 const int cAnimationLoopOnce = -1; -
versionPropre/Doduo_owb/WebCore/platform/graphics/IntPoint.h
old new 29 29 #include "IntSize.h" 30 30 #include <wtf/Platform.h> 31 31 32 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 33 #include "baltypesdl.h" 34 #endif 35 32 36 #if PLATFORM(CG) 33 37 typedef struct CGPoint CGPoint; 34 38 #endif … … 63 67 64 68 class IntPoint { 65 69 public: 70 66 71 IntPoint() : m_x(0), m_y(0) { } 67 72 IntPoint(int x, int y) : m_x(x), m_y(y) { } 68 73 … … 106 111 operator wxPoint() const; 107 112 #endif 108 113 114 115 109 116 private: 110 117 int m_x, m_y; 111 118 }; … … 122 129 return a; 123 130 } 124 131 125 inline IntPoint operator+(const IntPoint& a, const IntSize& b)126 {127 return IntPoint(a.x() + b.width(), a.y() + b.height());128 }129 132 130 133 inline IntSize operator-(const IntPoint& a, const IntPoint& b) 131 134 { … … 136 139 { 137 140 return IntPoint(a.x() - b.width(), a.y() - b.height()); 138 141 } 142 inline IntPoint operator+(const IntPoint& a, const IntSize& b) 143 { 144 return IntPoint(a.x() + b.width(), a.y() + b.height()); 145 } 139 146 140 147 inline bool operator==(const IntPoint& a, const IntPoint& b) 141 148 { -
versionPropre/Doduo_owb/WebCore/platform/graphics/IntRect.h
old new 29 29 #include "IntPoint.h" 30 30 #include <wtf/Platform.h> 31 31 32 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 33 #include "baltypesdl.h" 34 #endif 35 32 36 #if PLATFORM(CG) 33 37 typedef struct CGRect CGRect; 34 38 #endif … … 127 131 } 128 132 void inflate(int d) { inflateX(d); inflateY(d); } 129 133 void scale(float s); 130 131 134 #if PLATFORM(WX) 132 135 IntRect(const wxRect&); 133 136 operator wxRect() const; -
versionPropre/Doduo_owb/WebCore/platform/graphics/SimpleFontData.h
old new 117 117 #if PLATFORM(WX) 118 118 wxFont getWxFont() const { return m_font.font(); } 119 119 #endif 120 121 120 private: 122 121 void platformInit(); 123 122 void platformDestroy(); -
versionPropre/Doduo_owb/WebCore/platform/graphics/win/FontCustomPlatformData.h
old new 23 23 24 24 #include "FontRenderingMode.h" 25 25 #include <wtf/Noncopyable.h> 26 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 27 typedef void* HANDLE; 28 #endif 26 29 27 30 typedef struct CGFont* CGFontRef; 28 31 … … 44 47 45 48 CGFontRef m_cgFont; 46 49 HANDLE m_fontReference; 50 47 51 }; 48 52 49 53 FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer*); -
versionPropre/Doduo_owb/WebCore/platform/graphics/win/FontPlatformData.h
old new 24 24 #ifndef FontPlatformData_H 25 25 #define FontPlatformData_H 26 26 27 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 28 #define WTF_PLATFORM_CG 0 29 #define WTF_USE_CFNETWORK 0 30 #define WTF_PLATFORM_CF 0 31 #define WTF_PLATFORM_WIN 0 32 #define WTF_PLATFORM_CAIRO 0 33 #include "BALbase.h" 34 #endif 35 27 36 #include "StringImpl.h" 28 37 #include <wtf/RetainPtr.h> 29 38 #include <wtf/Refcounted.h> 30 31 39 #if PLATFORM(CAIRO) 32 40 #include <cairo-win32.h> 33 41 #endif 34 42 43 #ifdef __OWBAL_PLATFORM_WIN32PORT__ 44 #define WTF_PLATFORM_CG 0 45 #define WTF_USE_CFNETWORK 0 46 #define WTF_PLATFORM_CF 0 47 #define WTF_PLATFORM_WIN 0 48 #define WTF_PLATFORM_CAIRO 0 49 #include "BALbase.h" 50 #endif 51 35 52 typedef struct HFONT__* HFONT; 36 53 typedef struct CGFont* CGFontRef; 37 54 … … 65 82 #endif 66 83 ~FontPlatformData(); 67 84
