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

Issue 2902433002: Generates predicates to test in diff functions in ComputedStyle (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

Generates predicates to test in diff functions in ComputedStyle This patch adds the ability to generate the predicates that encapsulate diffing logic when generating diff functions in ComputedStyle. We specify the predicates to test as a list of predicates to test in ComputedStyleDiffFunctions.json5. A diff has been generated for two predicates for properties stored on StyleInheritedData. Further generation will be done in a separate patch. Diff: https://gist.github.com/nainar/e8956f13f3569d2195183513ffa11600/revisions BUG=710938 Review-Url: https://codereview.chromium.org/2902433002 Cr-Commit-Position: refs/heads/master@{#474567} Committed: https://chromium.googlesource.com/chromium/src/+/2ee241f419323d7dd924c8bf4b4506189b0319ab

Patch Set 1 #

Total comments: 7

Patch Set 2 : alancutter@'s suggestions #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : format changes #

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

Messages

Total messages: 33 (22 generated)
nainar
shend@, PTAL? Thanks! https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode60 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:60: predicate: "TextShadowDataEquivalent(other)", could add the other ...
3 years, 7 months ago (2017-05-22 03:45:29 UTC) #4
shend
lgtm https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode60 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:60: predicate: "TextShadowDataEquivalent(other)", On 2017/05/22 at 03:45:29, nainar wrote: ...
3 years, 7 months ago (2017-05-22 03:51:05 UTC) #5
nainar1
alancutter@, PTAL? Thanks! https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode60 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:60: predicate: "TextShadowDataEquivalent(other)", On 2017/05/22 at 03:51:05, ...
3 years, 7 months ago (2017-05-22 03:52:55 UTC) #7
rune
rs lgtm
3 years, 7 months ago (2017-05-24 06:33:12 UTC) #10
alancutter (OOO until 2018)
https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2902433002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode24 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:24: // which lists the properties this predicate test depends ...
3 years, 7 months ago (2017-05-24 07:29:36 UTC) #15
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2902433002/diff/1/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/2902433002/diff/1/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode210 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:210: field_dependencies = _list_field_dependencies(methods_to_diff) + _list_field_dependencies(predicates_to_test) The + can ...
3 years, 7 months ago (2017-05-24 07:43:19 UTC) #16
nainar
alancutter@, Made the changes you asked for. Waiting on shend@ to land his CL before ...
3 years, 7 months ago (2017-05-24 08:01:45 UTC) #17
alancutter (OOO until 2018)
https://codereview.chromium.org/2902433002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2902433002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode24 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:24: // The fields are: No need for this line, ...
3 years, 7 months ago (2017-05-25 01:59:20 UTC) #24
nainar
alancutter@, Done. https://codereview.chromium.org/2902433002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 File third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 (right): https://codereview.chromium.org/2902433002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode24 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:24: // The fields are: Done. https://codereview.chromium.org/2902433002/diff/20001/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5#newcode26 third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5:26: ...
3 years, 7 months ago (2017-05-25 02:04:26 UTC) #26
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/2902433002/60001
3 years, 7 months ago (2017-05-25 02:05:26 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 05:38:08 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2ee241f419323d7dd924c8bf4b45...

Powered by Google App Engine
This is Rietveld 408576698