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

Issue 2876803003: Generate diffs for fields in ComputedStyle that use their public getters (Closed)

Created:
3 years, 7 months ago by nainar
Modified:
3 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate diffs for fields in ComputedStyle that use their public getters This patch allows us to diff fields using their public getters when these getters do added work. We specify the getters in a map of expressions in ComputedStyleDiffFunctions.json5. This can be used to diff not just public getter but any function that uses the field. Hence the name map_of_expressions. Diff: https://gist.github.com/ae54c525ef49c24b7707848546e78c73/revisions BUG=710938 Review-Url: https://codereview.chromium.org/2876803003 Cr-Commit-Position: refs/heads/master@{#472605} Committed: https://chromium.googlesource.com/chromium/src/+/1f05e0767786c4b551c6cd3846dce6c183500747

Patch Set 1 #

Total comments: 7

Patch Set 2 : shend@'s suggestions #

Total comments: 2

Patch Set 3 : shend@'s suggestions #

Patch Set 4 : Formatting merge #

Total comments: 4

Patch Set 5 : alancutter@'s suggestions #

Total comments: 5

Patch Set 6 : alancutter@'s suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -21 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 3 4 5 1 chunk +15 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl View 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 View 1 2 3 4 5 1 chunk +32 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 55 (36 generated)
nainar
shend@, PTAL? Thanks! https://codereview.chromium.org/2876803003/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2876803003/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode117 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:117: const T& self = static_cast<const T&>(*this); ...
3 years, 7 months ago (2017-05-12 06:48:27 UTC) #4
shend
https://codereview.chromium.org/2876803003/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2876803003/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode117 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:117: const T& self = static_cast<const T&>(*this); On 2017/05/12 at ...
3 years, 7 months ago (2017-05-12 06:59:17 UTC) #5
nainar
Made the changes you asked for, PTAL? Thanks! https://codereview.chromium.org/2876803003/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2876803003/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode117 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:117: const ...
3 years, 7 months ago (2017-05-12 07:07:47 UTC) #8
shend
lgtm when u get build working https://codereview.chromium.org/2876803003/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2876803003/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode132 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:132: {{fieldwise_diff(self, groups_to_diff)|indent(2)}} might ...
3 years, 7 months ago (2017-05-12 07:10:41 UTC) #9
shend
lgtm when u get build working https://codereview.chromium.org/2876803003/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2876803003/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode132 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:132: {{fieldwise_diff(self, groups_to_diff)|indent(2)}} might ...
3 years, 7 months ago (2017-05-12 07:10:41 UTC) #10
nainar
alancutter@, PTAL? Thanks! https://codereview.chromium.org/2876803003/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2876803003/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode132 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:132: {{fieldwise_diff(self, groups_to_diff)|indent(2)}} yup. lol .done
3 years, 7 months ago (2017-05-12 07:14:31 UTC) #14
alancutter (OOO until 2018)
https://codereview.chromium.org/2876803003/diff/60001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2876803003/diff/60001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode9 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:9: fields: { Rename as fields_to_diff to match code and ...
3 years, 7 months ago (2017-05-16 00:43:56 UTC) #21
nainar
alancutter@, Made the changes you asked for. PTAL? Thanks! https://codereview.chromium.org/2876803003/diff/60001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2876803003/diff/60001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode9 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:9: ...
3 years, 7 months ago (2017-05-16 01:24:44 UTC) #24
alancutter (OOO until 2018)
https://codereview.chromium.org/2876803003/diff/80001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2876803003/diff/80001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode200 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:200: return field_dependencies This looks like it's creating a list ...
3 years, 7 months ago (2017-05-16 03:28:38 UTC) #28
nainar
alancutter@ Made the changes you asked for. PTAL? Thanks! https://codereview.chromium.org/2876803003/diff/80001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2876803003/diff/80001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode200 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:200: ...
3 years, 7 months ago (2017-05-16 03:46:13 UTC) #31
alancutter (OOO until 2018)
lgtm
3 years, 7 months ago (2017-05-16 04:08:23 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2876803003/100001
3 years, 7 months ago (2017-05-16 04:37:00 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/455456)
3 years, 7 months ago (2017-05-16 06:36:16 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2876803003/100001
3 years, 7 months ago (2017-05-17 00:15:36 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/456700)
3 years, 7 months ago (2017-05-17 02:44:36 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2876803003/100001
3 years, 7 months ago (2017-05-17 07:07:05 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/446853)
3 years, 7 months ago (2017-05-17 11:20:34 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2876803003/100001
3 years, 7 months ago (2017-05-17 23:44:23 UTC) #52
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 23:55:47 UTC) #55
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1f05e0767786c4b551c6cd3846dc...

Powered by Google App Engine
This is Rietveld 408576698