Bug 51121 - [v8] The last portion of CSS GC work: fixing fast/dom/StyleSheet/gc-stylesheet-wrapper.html
Summary: [v8] The last portion of CSS GC work: fixing fast/dom/StyleSheet/gc-styleshee...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: anton muhin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 11:34 PST by anton muhin
Modified: 2010-12-17 06:39 PST (History)
8 users (show)

See Also:


Attachments
Patch (3.48 KB, patch)
2010-12-15 15:13 PST, anton muhin
no flags Details | Formatted Diff | Diff
Patch (3.49 KB, patch)
2010-12-15 15:39 PST, anton muhin
no flags Details | Formatted Diff | Diff
Patch (3.48 KB, patch)
2010-12-15 16:04 PST, anton muhin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description anton muhin 2010-12-15 11:34:28 PST
[v8] The last portion of CSS GC work: fixing fast/dom/StyleSheet/gc-stylesheet-wrapper.html
Comment 1 anton muhin 2010-12-15 15:13:01 PST
Created attachment 76691 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-12-15 15:17:09 PST
Comment on attachment 76691 [details]
Patch

WebCore uses 4 space indent.  I'm not sure how this passed the style queue.
Comment 3 Eric Seidel (no email) 2010-12-15 15:17:30 PST
Comment on attachment 76691 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=76691&action=review

> WebCore/bindings/v8/V8GCController.cpp:371
> +        if (object) {

Early return is strongly preferred in WebKit.
Comment 4 anton muhin 2010-12-15 15:39:49 PST
Created attachment 76701 [details]
Patch
Comment 5 anton muhin 2010-12-15 15:41:54 PST
(In reply to comment #2)
> (From update of attachment 76691 [details])
> WebCore uses 4 space indent.  I'm not sure how this passed the style queue.

Thanks a lot, Eric, fixed.  I am surprised as well
Comment 6 anton muhin 2010-12-15 15:42:47 PST
Fixed too, but webkit-patch upload takes a lot of time on my MBP, please, wait for 3rd patch

(In reply to comment #3)
> (From update of attachment 76691 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=76691&action=review
> 
> > WebCore/bindings/v8/V8GCController.cpp:371
> > +        if (object) {
> 
> Early return is strongly preferred in WebKit.
Comment 7 anton muhin 2010-12-15 16:04:15 PST
Created attachment 76705 [details]
Patch
Comment 8 David Levin 2010-12-15 16:17:17 PST
(In reply to comment #5)
> (In reply to comment #2)
> > (From update of attachment 76691 [details] [details])
> > WebCore uses 4 space indent.  I'm not sure how this passed the style queue.
> 
> Thanks a lot, Eric, fixed.  I am surprised as well

check-webkit-style doesn't check indents really. It requires a bit of "intelligence" to do this correctly even at a simple level.

For example,
a(b, c
   d);

Would be indented correctly even though d would not be indented at a multiple of 4. You need to detect a statement end basically and then check to see that the indent is a multiple of 4. (To check that it is the correct multiple of 4 is more complicated because there are special rules for switch (for example).)
Comment 9 Eric Seidel (no email) 2010-12-16 15:09:42 PST
Comment on attachment 76705 [details]
Patch

Don't you need to remove it from the skipped list?  Looks sane enough to me, but I don't fully understand the consequences of this change not being particularly well versed in V8.
Comment 10 Jeremy Orlow 2010-12-17 02:13:31 PST
Mads, can you do an unofficial review of this please?
Comment 11 Mads Ager 2010-12-17 03:35:00 PST
This looks good to me.
Comment 12 anton muhin 2010-12-17 05:59:33 PST
Thanks a lot, Mads.

Guys, may I get r+, land this thing and finish CSS GC cleanup?

(In reply to comment #11)
> This looks good to me.
Comment 13 WebKit Commit Bot 2010-12-17 06:39:33 PST
Comment on attachment 76705 [details]
Patch

Clearing flags on attachment: 76705

Committed r74260: <http://trac.webkit.org/changeset/74260>
Comment 14 WebKit Commit Bot 2010-12-17 06:39:39 PST
All reviewed patches have been landed.  Closing bug.