Bug 29243 - Update Chromium Mac render theme files
Summary: Update Chromium Mac render theme files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 07:11 PDT by Avi Drissman
Modified: 2009-09-17 12:20 PDT (History)
2 users (show)

See Also:


Attachments
The patch (132.58 KB, patch)
2009-09-14 07:11 PDT, Avi Drissman
no flags Details | Formatted Diff | Diff
Updated patch; the .gypi file caught unwanted changes (132.06 KB, patch)
2009-09-14 07:16 PDT, Avi Drissman
dglazkov: review-
Details | Formatted Diff | Diff
New patch (132.13 KB, patch)
2009-09-15 08:16 PDT, Avi Drissman
no flags Details | Formatted Diff | Diff
Patch with svn cp used to mark origins of files (163.64 KB, patch)
2009-09-15 09:03 PDT, Avi Drissman
fishd: review-
Details | Formatted Diff | Diff
Update for fishd's comments (163.65 KB, patch)
2009-09-15 09:45 PDT, Avi Drissman
fishd: review+
dglazkov: commit-queue-
Details | Formatted Diff | Diff
Quick fix to make it compile (1.65 KB, patch)
2009-09-17 11:11 PDT, Avi Drissman
dglazkov: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Avi Drissman 2009-09-14 07:11:14 PDT
Created attachment 39542 [details]
The patch

The existing Chromium Mac render theme code is forked from an ancient version of RenderThemeMac. This patch brings that file up to date with the current version for ease of maintenance. (To be investigated: determining if we can merge the two files so they don't have to be kept in sync.)

Please see http://codereview.chromium.org/174242 for the initial review.
Comment 1 Avi Drissman 2009-09-14 07:13:27 PDT
A quick comment: the diff is complete hash. It's best to compare a patched RenderThemeChromiumMac to RenderThemeMac.
Comment 2 Avi Drissman 2009-09-14 07:16:32 PDT
Created attachment 39543 [details]
Updated patch; the .gypi file caught unwanted changes
Comment 3 Eric Seidel (no email) 2009-09-14 09:53:52 PDT
FYI, general behavior seems to be that you can mark cq=? if you want to make sure the reviewer sets cq+ when reviewing.
Comment 4 Dimitri Glazkov (Google) 2009-09-14 10:01:21 PDT
Comment on attachment 39543 [details]
Updated patch; the .gypi file caught unwanted changes

Can you please:

* include bug URL
* use svn cp to keep the history and minimize the amount of perceived changes made?
Comment 5 Eric Seidel (no email) 2009-09-14 10:22:19 PDT
prepare-ChangeLog --bug 29243
will automatically fill in the bug stuff for you.  see prepare-ChangeLog --help
Comment 6 Avi Drissman 2009-09-15 08:16:15 PDT
Created attachment 39601 [details]
New patch
Comment 7 Avi Drissman 2009-09-15 08:16:52 PDT
(In reply to comment #4)
> (From update of attachment 39543 [details])
> Can you please:
> 
> * include bug URL
> * use svn cp to keep the history and minimize the amount of perceived changes
> made?

Can you keep the svn cp status through a patch? I didn't think it was possible and would need someone to help me land this anyway.
Comment 8 Dimitri Glazkov (Google) 2009-09-15 08:54:12 PDT
(In reply to comment #7)
> (In reply to comment #4)
> > (From update of attachment 39543 [details] [details])
> > Can you please:
> > 
> > * include bug URL
> > * use svn cp to keep the history and minimize the amount of perceived changes
> > made?
> 
> Can you keep the svn cp status through a patch? I didn't think it was possible
> and would need someone to help me land this anyway.

No, but it makes reviewing and landing it a heckuva lot easier :). If you're looking for a rubberstamp, you've got it. But whoever lands this would have to cry tears of pain trying to svn cp, then apply this patch.
Comment 9 Avi Drissman 2009-09-15 09:03:48 PDT
Created attachment 39603 [details]
Patch with svn cp used to mark origins of files

OK, used svn cp to mark files' origins.
Comment 10 Eric Seidel (no email) 2009-09-15 09:25:14 PDT
Doesn't svn-create-patch store copy information?  I thought it did.  Also, if there are any tears-of-pain needed, then the commit-queue won't be of use to you, because it doesn't know how to cry.  It just knows how to make you cry when it rejects your patch. :)
Comment 11 Darin Fisher (:fishd, Google) 2009-09-15 09:39:14 PDT
Comment on attachment 39603 [details]
Patch with svn cp used to mark origins of files

> Index: WebCore/ChangeLog
...
> +        http://crbug.com/19604

No need for the crbug reference since you mention the bugs.webkit.org link.


> Index: WebCore/platform/graphics/FloatPoint.h
> +#if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
> +      || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))

nit: indent by 8 spaces instead of 6.  normal indent is 4 spaces, so 2x that
seems appropriate for a line continuation.


> Index: WebCore/platform/graphics/FloatRect.h
...
> +#if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
> +      || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))

ditto


> Index: WebCore/platform/graphics/FloatSize.h
...
> +#if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
> +      || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))

ditto


> Index: WebCore/platform/graphics/IntRect.h
...
> +#if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
> +      || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))
...
> +#if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \
> +      || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN))

ditto
Comment 12 Avi Drissman 2009-09-15 09:45:58 PDT
Created attachment 39605 [details]
Update for fishd's comments
Comment 13 Dimitri Glazkov (Google) 2009-09-15 11:38:16 PDT
Comment on attachment 39605 [details]
Update for fishd's comments

Needs downstream change.
Comment 14 Avi Drissman 2009-09-17 08:19:46 PDT
(In reply to comment #13)
> (From update of attachment 39605 [details])
> Needs downstream change.

Dmitri, I can coordinate with the WebKit gardener. Can we land this?
Comment 15 Dimitri Glazkov (Google) 2009-09-17 09:01:10 PDT
Landed as http://trac.webkit.org/changeset/48469.
Comment 16 Avi Drissman 2009-09-17 11:11:47 PDT
Created attachment 39708 [details]
Quick fix to make it compile

Oops, there was a line that referred to a non-existent member in the media theme drawing routines. The media drawing is TBD, so for now we're just pulling it out.
Comment 17 Dimitri Glazkov (Google) 2009-09-17 12:03:55 PDT
Comment on attachment 39708 [details]
Quick fix to make it compile

r=me.
Comment 18 Dimitri Glazkov (Google) 2009-09-17 12:20:08 PDT
Fix landed as http://trac.webkit.org/changeset/48481.