Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Issue 15157002: Begin moving DeprecatedStyleBuilder properties to new generated StyleBuilder. (Closed)

Created:
7 years, 7 months ago by Timothy Loh
Modified:
7 years, 7 months ago
Reviewers:
eseidel
CC:
blink-reviews, apavlov+blink_chromium.org, dglazkov+blink, eae+blinkwatch, darktears, eseidel
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Begin moving DeprecatedStyleBuilder properties to new generated StyleBuilder. This patch starts off the new generated StyleBuilder with the properties that used to have an ApplyPropertyDefault handler. Subsequent patches will move over the other handler types (length, computelength, auto, font, etc.) as well as allow for custom property handling routines. To start off with we're just generating a giant switch statement. Once we have sufficiently many (or all) properties in the new system, we can test other ideas, e.g. a function lookup table, for performance and binary size. BUG=237400 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150424

Patch Set 1 #

Total comments: 1

Patch Set 2 : move StyleBuilder call to below DeprecatedStyleBuilder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -116 lines) Patch
M Source/core/core.gyp/core.gyp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/core.gyp/core_derived_sources.gyp View 1 1 chunk +18 lines, -0 lines 0 comments Download
A Source/core/css/CSSProperties.in View 1 chunk +98 lines, -0 lines 0 comments Download
M Source/core/css/DeprecatedStyleBuilder.cpp View 6 chunks +0 lines, -93 lines 0 comments Download
A + Source/core/css/resolver/StyleBuilder.h View 1 chunk +12 lines, -5 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 3 chunks +6 lines, -1 line 0 comments Download
A + Source/core/scripts/make_style_builder.py View 1 chunk +49 lines, -17 lines 0 comments Download
A Source/core/scripts/templates/StyleBuilder.cpp.tmpl View 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Timothy Loh
r?
7 years, 7 months ago (2013-05-14 05:22:58 UTC) #1
eseidel
Sounds great. How to plan to test the awesomeness of the autogen code? Performance testing? ...
7 years, 7 months ago (2013-05-14 05:35:00 UTC) #2
Timothy Loh
On 2013/05/14 05:35:00, Eric Seidel wrote: > Sounds great. How to plan to test the ...
7 years, 7 months ago (2013-05-14 07:12:54 UTC) #3
dglazkov
Awesome stuff, timloh!
7 years, 7 months ago (2013-05-14 14:56:30 UTC) #4
eseidel
This seems fine. I'd like to see the generated output. Can you pastebin that? https://codereview.chromium.org/15157002/diff/1/Source/core/css/CSSProperties.in ...
7 years, 7 months ago (2013-05-15 06:25:28 UTC) #5
Timothy Loh
On 2013/05/15 06:25:28, eseidel wrote: > This seems fine. I'd like to see the generated ...
7 years, 7 months ago (2013-05-15 06:34:01 UTC) #6
Timothy Loh
On 2013/05/15 06:34:01, Timothy Loh wrote: > I guess we can, I'll add a flag ...
7 years, 7 months ago (2013-05-15 06:51:27 UTC) #7
eseidel
lgtm Thanks. We need a strategy for testing the perf of this to make sure ...
7 years, 7 months ago (2013-05-15 06:57:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timloh@chromium.org/15157002/8001
7 years, 7 months ago (2013-05-15 06:57:43 UTC) #9
eseidel
I spoke with Tim over IM and received assurances that he would finish what he ...
7 years, 7 months ago (2013-05-15 06:58:05 UTC) #10
eseidel
Another resolution for this might be to do this work on a branch. I'm not ...
7 years, 7 months ago (2013-05-15 07:00:09 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 14:11:45 UTC) #12
Message was sent while issue was closed.
Change committed as 150424

Powered by Google App Engine
This is Rietveld 408576698