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

Issue 2861773004: Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead (Closed)

Created:
3 years, 7 months ago by nainar
Modified:
3 years, 7 months ago
Reviewers:
meade_UTC10, shend
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead This patch moves the storage of border-*-width away from BorderValue. We instead store them on the generated SurroundData group on ComputedStyle instead. Since BorderValue is used by other classes such as OutlineValue and MultiColData we have changed BorderData to store the border-*-(style/color) information on BorderColorAndStyle which is the BorderValue class without the border-*-width information. The long term intention is to move all information away from BorderColorAndStyle - it is a temporary class to store information as we generate border-*-* iteratively. Please note that we convert BorderColorAndStyle to a BorderValue when we send information over to the Layout system to make the interfacing easy. This will be changed to creating a new BorderValue from the individual values in the long run or something along those lines (pending discussion.) Generated diff: https://gist.github.com/nainar/296dda6afe541b6ca6da18a2923d0ef9/revisions BUG=628043 Review-Url: https://codereview.chromium.org/2861773004 Cr-Commit-Position: refs/heads/master@{#470272} Committed: https://chromium.googlesource.com/chromium/src/+/5a563421457c31c1bb6cdac72c899db056f1adc7

Patch Set 1 #

Total comments: 1

Patch Set 2 : Change getters/setters of Border*Width #

Patch Set 3 : Change border-*-width from a float to unsigned #

Total comments: 21

Patch Set 4 : shend@'s suggestions #

Patch Set 5 : shend@'s suggestions #

Total comments: 2

Patch Set 6 : meade@'s suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -132 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 2 3 5 chunks +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCol.h View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCol.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableRow.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/style/BorderColorAndStyle.h View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderData.h View 3 chunks +9 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderValue.h View 1 2 3 4 5 3 chunks +17 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/style/CachedUAStyle.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 chunks +62 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 5 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/OutlineValue.h View 1 chunk +0 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 40 (29 generated)
nainar
shend@, PTAL? Thanks! https://codereview.chromium.org/2861773004/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl (right): https://codereview.chromium.org/2861773004/diff/1/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl#newcode15 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl:15: {{field.type_name}} {{field.name}}; This is cleaning up ...
3 years, 7 months ago (2017-05-04 03:06:56 UTC) #6
nainar
shend@, PTAL? Thanks! https://codereview.chromium.org/2861773004/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl (right): https://codereview.chromium.org/2861773004/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl#newcode15 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl:15: {{field.type_name}} {{field.name}}; Cleaning up an erroneous ...
3 years, 7 months ago (2017-05-05 07:16:50 UTC) #13
shend
https://codereview.chromium.org/2861773004/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl (right): https://codereview.chromium.org/2861773004/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl#newcode15 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl:15: {{field.type_name}} {{field.name}}; On 2017/05/05 at 07:16:49, nainar wrote: > ...
3 years, 7 months ago (2017-05-07 23:08:31 UTC) #16
nainar
shend@, Made the changes you asked for and answered some questions inline. PTAL? Thanks! https://codereview.chromium.org/2861773004/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl ...
3 years, 7 months ago (2017-05-08 00:59:57 UTC) #21
shend
lgtm, although some of the return by values might have perf impact. I think it ...
3 years, 7 months ago (2017-05-08 04:39:02 UTC) #24
nainar
On 2017/05/08 at 04:39:02, shend wrote: > lgtm, although some of the return by values ...
3 years, 7 months ago (2017-05-08 05:08:26 UTC) #25
nainar
meade@, PTAL? Thanks!
3 years, 7 months ago (2017-05-08 05:08:42 UTC) #27
meade_UTC10
lgtm with nits I assume this is the CL you were talking about in standup ...
3 years, 7 months ago (2017-05-09 03:25:06 UTC) #28
nainar
meade@, Changed the misspelling in the CL description. Thank you for that. And yup this ...
3 years, 7 months ago (2017-05-09 05:48:11 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/2861773004/100001
3 years, 7 months ago (2017-05-09 09:59:03 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 10:05:07 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/5a563421457c31c1bb6cdac72c89...

Powered by Google App Engine
This is Rietveld 408576698