Bug 81587

Summary: Increase code sharing between CSSParser and CSSPropertyLonghand.
Product: WebKit Reporter: Alexis Menard (darktears) <menard>
Component: CSSAssignee: Alexis Menard (darktears) <menard>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, dglazkov, kling, koivisto, macpherson, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch for landing
none
Patch for landing
none
Patch for landing
none
Patch for landing none

Alexis Menard (darktears)
Reported 2012-03-19 16:21:28 PDT
Remove the map of CSSPropertyLonghand.
Attachments
Patch (27.06 KB, patch)
2012-03-19 16:23 PDT, Alexis Menard (darktears)
no flags
Patch (50.12 KB, patch)
2012-03-22 05:52 PDT, Alexis Menard (darktears)
no flags
Patch (49.81 KB, patch)
2012-03-22 06:12 PDT, Alexis Menard (darktears)
no flags
Patch for landing (50.27 KB, patch)
2012-03-22 06:51 PDT, Alexis Menard (darktears)
no flags
Patch for landing (50.29 KB, patch)
2012-03-22 07:14 PDT, Alexis Menard (darktears)
no flags
Patch for landing (50.40 KB, patch)
2012-03-22 07:39 PDT, Alexis Menard (darktears)
no flags
Patch for landing (51.01 KB, patch)
2012-03-22 08:43 PDT, Alexis Menard (darktears)
no flags
Patch for landing (50.96 KB, patch)
2012-03-22 10:10 PDT, Alexis Menard (darktears)
no flags
Alexis Menard (darktears)
Comment 1 2012-03-19 16:23:46 PDT
Alexis Menard (darktears)
Comment 2 2012-03-19 16:33:11 PDT
Without the patch : Running CSS/CSSPropertySetterGetter.html (1 of 1) RESULT CSS: CSSPropertySetterGetter= 1140.55 ms median= 1139.5 ms, stdev= 5.11346262331 ms, min= 1134.0 ms, max= 1151.0 ms Finished: 24.360030 s With the patch : Running CSS/CSSPropertySetterGetter.html (1 of 1) RESULT CSS: CSSPropertySetterGetter= 1125.6 ms median= 1123.0 ms, stdev= 7.052659073 ms, min= 1119.0 ms, max= 1147.0 ms Finished: 24.047662 s
Luke Macpherson
Comment 3 2012-03-20 17:01:23 PDT
Tony Chang
Comment 4 2012-03-21 14:17:48 PDT
Comment on attachment 132707 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132707&action=review > Source/WebCore/css/CSSPropertyLonghand.cpp:371 > +static inline CSSPropertyLonghand& webkitWrapLonghands() > +{ > + static const int webkitWrapProperties[] = { Do we actually need all these functions? How does it look to just inlines these in longhandForProperty?
Tony Chang
Comment 5 2012-03-21 14:19:56 PDT
Comment on attachment 132707 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132707&action=review > Source/WebCore/css/CSSPropertyLonghand.cpp:380 > +static CSSPropertyLonghand defaultLonghand; This looks like a global static. Can you put this in longhandForProperty?
Alexis Menard (darktears)
Comment 6 2012-03-22 05:52:38 PDT
Alexis Menard (darktears)
Comment 7 2012-03-22 06:12:26 PDT
Build Bot
Comment 8 2012-03-22 06:34:19 PDT
Antti Koivisto
Comment 9 2012-03-22 06:39:01 PDT
Comment on attachment 133243 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133243&action=review r=me > Source/WebCore/css/CSSPropertyLonghand.cpp:31 > +CSSPropertyLonghand& backgroundLonghand() > +{ These should be const CSSPropertyLonghand& > Source/WebCore/css/CSSPropertyLonghand.cpp:59 > +CSSPropertyLonghand& backgroundRepeatLonghand() > +{ > + static const int backgroundRepeatProperties[] = { CSSPropertyBackgroundRepeatX, CSSPropertyBackgroundRepeatY }; > + DEFINE_STATIC_LOCAL(CSSPropertyLonghand, backgroundRepeatLonghand, (backgroundRepeatProperties, WTF_ARRAY_LENGTH(backgroundRepeatProperties))); > + return backgroundRepeatLonghand; > +} These should be const CSSPropertyLonghand&
Alexis Menard (darktears)
Comment 10 2012-03-22 06:51:45 PDT
Created attachment 133247 [details] Patch for landing
Build Bot
Comment 11 2012-03-22 07:08:26 PDT
Comment on attachment 133247 [details] Patch for landing Attachment 133247 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/12066959
Alexis Menard (darktears)
Comment 12 2012-03-22 07:14:38 PDT
Created attachment 133253 [details] Patch for landing
Build Bot
Comment 13 2012-03-22 07:28:26 PDT
Comment on attachment 133253 [details] Patch for landing Attachment 133253 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/12067018
Alexis Menard (darktears)
Comment 14 2012-03-22 07:39:50 PDT
Created attachment 133261 [details] Patch for landing
Build Bot
Comment 15 2012-03-22 08:21:37 PDT
Comment on attachment 133261 [details] Patch for landing Attachment 133261 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/12114041
WebKit Review Bot
Comment 16 2012-03-22 08:26:01 PDT
Comment on attachment 133261 [details] Patch for landing Attachment 133261 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/12117050
Alexis Menard (darktears)
Comment 17 2012-03-22 08:43:28 PDT
Created attachment 133273 [details] Patch for landing
Alexis Menard (darktears)
Comment 18 2012-03-22 08:44:03 PDT
(In reply to comment #17) > Created an attachment (id=133273) [details] > Patch for landing Should fix the warnings about integer vs unsigned comparison.
Alexis Menard (darktears)
Comment 19 2012-03-22 10:10:15 PDT
Created attachment 133287 [details] Patch for landing
WebKit Review Bot
Comment 20 2012-03-22 10:55:08 PDT
Comment on attachment 133287 [details] Patch for landing Clearing flags on attachment: 133287 Committed r111731: <http://trac.webkit.org/changeset/111731>
WebKit Review Bot
Comment 21 2012-03-22 10:55:14 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.