Bug 22586 - Remove WebCore CG-specific functions from Cairo Build of WebKit (Windows)
Summary: Remove WebCore CG-specific functions from Cairo Build of WebKit (Windows)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 20:32 PST by Brent Fulgham
Modified: 2008-12-02 11:01 PST (History)
0 users

See Also:


Attachments
Remove FontDatabase from Windows Cairo build. (6.02 KB, patch)
2008-12-01 20:48 PST, Brent Fulgham
no flags Details | Formatted Diff | Diff
Remove FontDatabase from Windows Cairo build. (6.02 KB, patch)
2008-12-01 20:48 PST, Brent Fulgham
aroben: review-
Details | Formatted Diff | Diff
Patch to remove some CG-specific code from the Cairo build. (2.67 KB, patch)
2008-12-02 09:31 PST, Brent Fulgham
aroben: review+
Details | Formatted Diff | Diff
Patch to remove some CG-specific code from the Cairo build. (2.90 KB, patch)
2008-12-02 09:42 PST, Brent Fulgham
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2008-12-01 20:32:06 PST
The FontDatabase class is only needed for processing CG-based fonts.  Since these are not used in the Cairo version of the Windows build, remove the database from the Cairo Windows target.
Comment 1 Brent Fulgham 2008-12-01 20:48:58 PST
Created attachment 25657 [details]
Remove FontDatabase from Windows Cairo build.
Comment 2 Brent Fulgham 2008-12-01 20:48:59 PST
Created attachment 25658 [details]
Remove FontDatabase from Windows Cairo build.
Comment 3 Adam Roben (:aroben) 2008-12-01 22:12:33 PST
Comment on attachment 25658 [details]
Remove FontDatabase from Windows Cairo build.

> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog	(revision 38852)
> +++ WebCore/ChangeLog	(working copy)
> @@ -1,3 +1,15 @@
> +2008-11-30  Brent Fulgham  <bfulgham@gmail.com>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        https://bugs.webkit.org/show_bug.cgi?id=22586
> +        Remove FontDatabase files from Cairo Windows build. 

Maybe you should make the name of the bug more general since you're making other fixes in this change.

> +    static Color focusRingColor;
> +
> +    if (!focusRingColor.isValid())
> +        focusRingColor = aquaFocusRingColor;

You can do this all in one statement:

static Color focusRingColor = aquaFocusRingColor;

> +    void populateFontDatabase() { /* Do nothing */ }

Why not just add this one stub to platform/win/TemporaryLinkStubs.cpp?

r- because I don't think it's good to add another link stub file with a different name that's only for Cairo (at least not if the name doesn't indicate it's only for Cairo).
Comment 4 Brent Fulgham 2008-12-02 09:31:00 PST
Created attachment 25672 [details]
Patch to remove some CG-specific code from the Cairo build.

Revised patch based on aroben's comments:
1.  Using the canonical stub file.
2.  Switched to simplified focusRingColor implementation.
3.  Revised bug title and description.
Comment 5 Adam Roben (:aroben) 2008-12-02 09:35:21 PST
Comment on attachment 25672 [details]
Patch to remove some CG-specific code from the Cairo build.

> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog	(revision 38897)
> +++ WebCore/ChangeLog	(working copy)
> @@ -1,3 +1,15 @@
> +2008-12-01  Brent Fulgham  <bfulgham@gmail.com>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        WARNING: NO TEST CASES ADDED OR CHANGED

You should still reference the bug in the ChangeLog. You should also remove this line about no tests being added, and replace it with an explanation.

r=me
Comment 6 Brent Fulgham 2008-12-02 09:42:27 PST
Created attachment 25673 [details]
Patch to remove some CG-specific code from the Cairo build.

Revised patch to address aroben's ChangeLog suggestions.
Comment 7 Adam Roben (:aroben) 2008-12-02 09:43:46 PST
Comment on attachment 25673 [details]
Patch to remove some CG-specific code from the Cairo build.

r=me
Comment 8 Eric Seidel (no email) 2008-12-02 11:01:18 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/WebCore.vcproj/WebCore.vcproj
	M	WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
	M	WebCore/platform/win/TemporaryLinkStubs.cpp
Committed r38906