Bug 8531

Summary: Added new Platform macros and using them for porting
Product: WebKit Reporter: Michael Emmel <mike.emmel>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-webkit, ian
Priority: P2    
Version: 420+   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 8515    
Attachments:
Description Flags
Additional Cairo and Gdk platform def
darin: review-
Patch using CAIRO PLATFORM
darin: review-
use new CAIRO Platform darin: review-

Description Michael Emmel 2006-04-22 00:19:23 PDT
Added two new platform macros 
GDK and CAIRO
used in GraphicsContext
Comment 1 Michael Emmel 2006-04-22 00:21:39 PDT
Created attachment 7901 [details]
Additional Cairo and Gdk platform def
Comment 2 Michael Emmel 2006-04-22 00:27:51 PDT
Created attachment 7902 [details]
Patch using CAIRO PLATFORM


Note if the Win32 build is changed to define BUILDING_CAIRO__
the extra test for WIN32 can be removed
Comment 3 Michael Emmel 2006-04-22 00:43:48 PDT
Created attachment 7903 [details]
use new CAIRO Platform
Comment 4 Darin Adler 2006-04-22 14:33:42 PDT
Comment on attachment 7902 [details]
Patch using CAIRO PLATFORM

There should never be a need to say "PLATFORM(CAIRO) || PLATFORM(WIN32)", so this is not correct. It should just be PLATFORM(CAIRO) and we should make sure it's set when building for Win32.
Comment 5 Darin Adler 2006-04-22 14:34:41 PDT
Comment on attachment 7901 [details]
Additional Cairo and Gdk platform def

This is wrong. We need to set KXMLCORE_PLATFORM_CAIRO for Win32 builds too, if it's going to exist. Also, graphics platform settings should go in a different section, not mixed in with MAC and WIN.
Comment 6 Darin Adler 2006-04-22 14:35:23 PDT
Comment on attachment 7903 [details]
use new CAIRO Platform

Looks good, but can't land this until we set CAIRO correctly (I review-'d the other related patches).
Comment 7 Darin Adler 2006-04-22 14:37:14 PDT
Comment on attachment 7903 [details]
use new CAIRO Platform

Oops, sorry, I take that back. The platform should be WIN_OS for this Win32 stuff. There is no PLATFORM(WIN32) and PLATFORM(WIN) is about the low level operating system rather than the high level operating environment (HDC and such).
Comment 8 Maciej Stachowiak 2006-04-22 16:49:27 PDT
Actually, PLATFORM(WIN) is the high level and PLATFORM(WIN_OS) is the low level. PLATFORM(WIN) would be right for these patches.
Comment 9 Michael Emmel 2006-04-22 18:11:15 PDT
(In reply to comment #8)
> Actually, PLATFORM(WIN) is the high level and PLATFORM(WIN_OS) is the low
> level. PLATFORM(WIN) would be right for these patches.
> 

If you can change the patch to match I'd appreciate it also as you note it needs to be tested under Windows which I'm not set up to do.
Comment 10 Eric Seidel (no email) 2007-09-30 11:31:31 PDT
This was done long ago.