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

Issue 2869043002: Store border-*-color on SurroundData in ComputedStyle not BorderColorAndStyle (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

Store border-*-color on SurroundData in ComputedStyle not BorderColorAndStyle This patch moves the storage of border-*-color away from BorderColorAndStyle. 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 information on BorderStyle which is the BorderValue class without the border-*-(width/color) information. The long term intention is to move all information away from BorderStyle - it is a temporary class to store information as we generate border-*-* iteratively. Please note that we convert BorderStyle 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.) Diff: https://gist.github.com/cf8735baa30e27a2dc945b6485c85a74/revisions BUG=628043 Review-Url: https://codereview.chromium.org/2869043002 Cr-Commit-Position: refs/heads/master@{#470907} Committed: https://chromium.googlesource.com/chromium/src/+/7201468ffddd08c6893769c4a0616df7e9bedcad

Patch Set 1 #

Patch Set 2 : Always return VisitedDependantColor(CSSPropertyID) #

Total comments: 4

Patch Set 3 : Fix copy paste issue #

Patch Set 4 : Rebase #

Patch Set 5 : Fix a few issue #

Total comments: 6

Patch Set 6 : Change unsinged to bool in CachedUAStyle #

Total comments: 3

Patch Set 7 : Remove todo and change VisitedDependentColor to Border-*-Color public getters #

Patch Set 8 : Fix up BorderColorEquals #

Patch Set 9 : BorderColorVisuallyEquals calls BorderColorEquals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -182 lines) Patch
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 2 3 4 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleExtraFields.json5 View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/core/style/BorderColorAndStyle.h View 1 chunk +0 lines, -102 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderData.h View 3 chunks +9 lines, -16 lines 0 comments Download
A + third_party/WebKit/Source/core/style/BorderStyle.h View 5 chunks +8 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/style/BorderValue.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/CachedUAStyle.h View 1 2 3 4 5 3 chunks +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 6 7 8 6 chunks +95 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 48 (36 generated)
shend
https://codereview.chromium.org/2869043002/diff/20001/third_party/WebKit/Source/core/style/CachedUAStyle.h File third_party/WebKit/Source/core/style/CachedUAStyle.h (right): https://codereview.chromium.org/2869043002/diff/20001/third_party/WebKit/Source/core/style/CachedUAStyle.h#newcode53 third_party/WebKit/Source/core/style/CachedUAStyle.h:53: Color border_left_color; Probably won't make a difference, but we ...
3 years, 7 months ago (2017-05-09 07:24:41 UTC) #5
nainar
shend@, PTAL? Thanks! https://codereview.chromium.org/2869043002/diff/20001/third_party/WebKit/Source/core/style/CachedUAStyle.h File third_party/WebKit/Source/core/style/CachedUAStyle.h (right): https://codereview.chromium.org/2869043002/diff/20001/third_party/WebKit/Source/core/style/CachedUAStyle.h#newcode53 third_party/WebKit/Source/core/style/CachedUAStyle.h:53: Color border_left_color; On 2017/05/09 at 07:24:41, ...
3 years, 7 months ago (2017-05-09 07:40:39 UTC) #8
shend
lgtm
3 years, 7 months ago (2017-05-09 07:54:43 UTC) #9
shend
A few things https://codereview.chromium.org/2869043002/diff/80001/third_party/WebKit/Source/core/style/BorderValue.h File third_party/WebKit/Source/core/style/BorderValue.h (right): https://codereview.chromium.org/2869043002/diff/80001/third_party/WebKit/Source/core/style/BorderValue.h#newcode49 third_party/WebKit/Source/core/style/BorderValue.h:49: BorderValue(const BorderStyle& data, const StyleColor& color, ...
3 years, 7 months ago (2017-05-11 00:41:13 UTC) #20
nainar
https://codereview.chromium.org/2869043002/diff/80001/third_party/WebKit/Source/core/style/BorderValue.h File third_party/WebKit/Source/core/style/BorderValue.h (right): https://codereview.chromium.org/2869043002/diff/80001/third_party/WebKit/Source/core/style/BorderValue.h#newcode49 third_party/WebKit/Source/core/style/BorderValue.h:49: BorderValue(const BorderStyle& data, const StyleColor& color, float width) { ...
3 years, 7 months ago (2017-05-11 01:04:51 UTC) #21
nainar
Hi meade@, shend@ and I have been staring at this for ages and clearly there ...
3 years, 7 months ago (2017-05-11 01:07:50 UTC) #23
meade_UTC10
Hmmmmmmm that's tricky! I didn't see anything that looked like it would cause extra style ...
3 years, 7 months ago (2017-05-11 03:39:24 UTC) #28
nainar
removed the todo - tests still failing. https://codereview.chromium.org/2869043002/diff/100001/third_party/WebKit/Source/core/style/ComputedStyle.h File third_party/WebKit/Source/core/style/ComputedStyle.h (right): https://codereview.chromium.org/2869043002/diff/100001/third_party/WebKit/Source/core/style/ComputedStyle.h#newcode2852 third_party/WebKit/Source/core/style/ComputedStyle.h:2852: return BorderValue(surround_data_->border_.Left(), ...
3 years, 7 months ago (2017-05-11 04:33:22 UTC) #31
nainar
meade@ for OWNERS. Only change is BorderColorEquals()
3 years, 7 months ago (2017-05-11 08:18:19 UTC) #36
meade_UTC10
lgtm Nice job finding the issue!
3 years, 7 months ago (2017-05-11 08:20:07 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/2869043002/160001
3 years, 7 months ago (2017-05-11 10:38:29 UTC) #45
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 10:44:27 UTC) #48
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/7201468ffddd08c6893769c4a061...

Powered by Google App Engine
This is Rietveld 408576698