RESOLVED FIXED 82624
Rename CSSPropertyLonghand class to StylePropertyShorthand.
https://bugs.webkit.org/show_bug.cgi?id=82624
Summary Rename CSSPropertyLonghand class to StylePropertyShorthand.
Alexis Menard (darktears)
Reported 2012-03-29 09:41:46 PDT
Remove CSSPropertyLonghand object to simplify CSS shorthand handling.
Attachments
Patch (83.19 KB, patch)
2012-03-29 09:46 PDT, Alexis Menard (darktears)
no flags
Patch (83.04 KB, patch)
2012-03-29 09:56 PDT, Alexis Menard (darktears)
no flags
Patch (83.09 KB, patch)
2012-03-29 10:07 PDT, Alexis Menard (darktears)
no flags
Patch (83.26 KB, patch)
2012-03-29 12:24 PDT, Alexis Menard (darktears)
no flags
Patch (77.67 KB, patch)
2012-03-29 13:56 PDT, Alexis Menard (darktears)
no flags
Patch (108.46 KB, patch)
2012-04-02 05:21 PDT, Alexis Menard (darktears)
no flags
Patch (109.31 KB, patch)
2012-04-02 06:14 PDT, Alexis Menard (darktears)
no flags
Alexis Menard (darktears)
Comment 1 2012-03-29 09:46:11 PDT
Alexis Menard (darktears)
Comment 2 2012-03-29 09:49:45 PDT
Antti I implemented what we talked yesterday. What do you think? Do you think it is better or should we go back to the old approach and just rename the CSSPropertyLonghand class to ShorthandProperties? I find this approach more error prone. Let's see what EWS says also :).
Alexis Menard (darktears)
Comment 3 2012-03-29 09:56:58 PDT
Alexis Menard (darktears)
Comment 4 2012-03-29 10:07:16 PDT
Alexis Menard (darktears)
Comment 5 2012-03-29 12:24:05 PDT
Created attachment 134641 [details] Patch This should fix the regressions
Eric Seidel (no email)
Comment 6 2012-03-29 13:15:56 PDT
Comment on attachment 134641 [details] Patch I'm confused why a CSSPropertyID* which points to an array of unspecified length, is better/safer than a class. This seems backwards.
Eric Seidel (no email)
Comment 7 2012-03-29 13:16:26 PDT
I think this change, as written would be asking for crashes.
Alexis Menard (darktears)
Comment 8 2012-03-29 13:56:09 PDT
Created attachment 134660 [details] Patch Alternative patch
Ryosuke Niwa
Comment 9 2012-03-29 14:07:23 PDT
Comment on attachment 134660 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=134660&action=review > Source/WebCore/css/CSSPropertyLonghand.h:61 > +const ShorthandProperties& backgroundLonghand(); I think the class name should be singular here since this class represents a list of longhand properties for a signle shorthand property.
Ryosuke Niwa
Comment 10 2012-03-29 14:08:18 PDT
Also we should probably keep CSS prefix since shorthand is a quite generic name.
Alexis Menard (darktears)
Comment 11 2012-03-29 15:40:07 PDT
(In reply to comment #9) > (From update of attachment 134660 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=134660&action=review > > > Source/WebCore/css/CSSPropertyLonghand.h:61 > > +const ShorthandProperties& backgroundLonghand(); > > I think the class name should be singular here since this class represents a list of longhand properties for a signle shorthand property. so you would do const ShorthandProperty& backgroundShorthand()
Alexis Menard (darktears)
Comment 12 2012-03-29 15:40:48 PDT
(In reply to comment #10) > Also we should probably keep CSS prefix since shorthand is a quite generic name. Well it seems we start using CSS prefix only for CSSOM classes. This one is implementation detail.
Ryosuke Niwa
Comment 13 2012-03-29 15:53:11 PDT
(In reply to comment #12) > (In reply to comment #10) > > Also we should probably keep CSS prefix since shorthand is a quite generic name. > > Well it seems we start using CSS prefix only for CSSOM classes. This one is implementation detail. Okay.
Alexis Menard (darktears)
Comment 14 2012-04-02 05:21:10 PDT
Alexis Menard (darktears)
Comment 15 2012-04-02 06:14:34 PDT
Antti Koivisto
Comment 16 2012-04-02 06:16:27 PDT
Comment on attachment 135082 [details] Patch r=me
WebKit Review Bot
Comment 17 2012-04-02 07:20:05 PDT
Comment on attachment 135082 [details] Patch Clearing flags on attachment: 135082 Committed r112880: <http://trac.webkit.org/changeset/112880>
WebKit Review Bot
Comment 18 2012-04-02 07:20:11 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.