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

Issue 759373002: Better handling border color style decoration (Closed)

Created:
6 years ago by Savago
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, eseidel, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Handling border color decoration in a similar way as Firefox does, lightening the border side colors if needed. BUG=436990

Patch Set 1 : Groove/inset/outset borders show solid if the color is black #

Total comments: 8

Patch Set 2 #

Total comments: 1

Patch Set 3 : Remove unset border color in RenderStyle #

Total comments: 3

Patch Set 4 : Changing the test per reviewer's request. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -11 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/borders/mixed-border-style2.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A + LayoutTests/platform/mac-retina/fast/borders/mixed-border-style2-expected.png View 1 2 3 Binary file 0 comments Download
A LayoutTests/platform/mac-retina/fast/borders/mixed-border-style2-expected.txt View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/paint/ObjectPainter.h View 1 1 chunk +1 line, -0 lines 4 comments Download
M Source/core/paint/ObjectPainter.cpp View 1 2 chunks +22 lines, -7 lines 2 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (3 generated)
Savago
6 years ago (2014-11-26 20:23:25 UTC) #1
mstensho (USE GERRIT)
I'm not much of a color guy, so I cannot really assess the correctness of ...
6 years ago (2014-11-27 09:33:29 UTC) #3
Savago
mstencho Thanks for reviewing the patch, I will be addressing the comments in a new ...
6 years ago (2014-12-01 01:34:52 UTC) #4
Savago
6 years ago (2014-12-01 02:14:29 UTC) #5
Timothy Loh
On 2014/12/01 02:14:29, Savago wrote: Do we want to remove our special-casing of un-set borders ...
6 years ago (2014-12-01 02:37:08 UTC) #6
Timothy Loh
https://codereview.chromium.org/759373002/diff/20001/Source/core/paint/ObjectPainter.cpp File Source/core/paint/ObjectPainter.cpp (right): https://codereview.chromium.org/759373002/diff/20001/Source/core/paint/ObjectPainter.cpp#newcode96 Source/core/paint/ObjectPainter.cpp:96: void ObjectPainter::drawLineForBoxSide(GraphicsContext* graphicsContext, int x1, int y1, int x2, ...
6 years ago (2014-12-01 03:03:12 UTC) #7
Savago
6 years ago (2014-12-01 05:17:04 UTC) #8
Savago
On 2014/12/01 02:37:08, Timothy Loh wrote: > On 2014/12/01 02:14:29, Savago wrote: > > Do ...
6 years ago (2014-12-01 05:18:31 UTC) #9
mstensho (USE GERRIT)
Looks fine (and getting rid of the hack in RenderStyle is great), but I think ...
6 years ago (2014-12-01 20:59:28 UTC) #10
Savago
mstensho Thanks for the comments, I will answer inline. > Looks fine (and getting rid ...
6 years ago (2014-12-01 22:03:42 UTC) #11
chrishtr
https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.cpp File Source/core/paint/ObjectPainter.cpp (right): https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.cpp#newcode344 Source/core/paint/ObjectPainter.cpp:344: const RGBA32 baseDarkColor = 0xFF202020; This needs a comment ...
6 years ago (2014-12-01 22:51:32 UTC) #12
Timothy Loh
This changes >1000 test expectations. I think we should be careful here, since we don't ...
6 years ago (2014-12-01 23:02:30 UTC) #14
Savago
On 2014/12/01 23:02:30, Timothy Loh wrote: > This changes >1000 test expectations. I think we ...
6 years ago (2014-12-02 00:59:51 UTC) #15
Savago
https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.h File Source/core/paint/ObjectPainter.h (right): https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.h#newcode36 Source/core/paint/ObjectPainter.h:36: static void modifyBorderColorForStyleIfNeeded(const EBorderStyle&, const BoxSide&, Color&); On 2014/12/01 ...
6 years ago (2014-12-02 01:02:39 UTC) #16
pdr.
Drive by comments. Do you have a link to where Gecko computes this? https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.cpp File ...
6 years ago (2014-12-02 02:55:49 UTC) #18
chrishtr
https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.h File Source/core/paint/ObjectPainter.h (right): https://codereview.chromium.org/759373002/diff/60001/Source/core/paint/ObjectPainter.h#newcode36 Source/core/paint/ObjectPainter.h:36: static void modifyBorderColorForStyleIfNeeded(const EBorderStyle&, const BoxSide&, Color&); On 2014/12/02 ...
6 years ago (2014-12-02 03:17:52 UTC) #19
Savago
> Some of those are public because they are used from another class (e.g. > ...
6 years ago (2014-12-02 19:50:27 UTC) #20
mstensho (USE GERRIT)
Can we get some progress here?
5 years, 11 months ago (2015-01-07 10:07:52 UTC) #21
Savago
On 2015/01/07 10:07:52, mstensho wrote: > Can we get some progress here? mstensho I'm on ...
5 years, 11 months ago (2015-01-07 19:40:34 UTC) #22
Savago
mstensho Perhaps relevant, basically the same patch has landed successfully on WebKit last December: https://bugs.webkit.org/show_bug.cgi?id=58608 ...
5 years, 11 months ago (2015-01-07 19:55:57 UTC) #23
mstensho (USE GERRIT)
On 2015/01/07 19:55:57, Savago wrote: > As we are changing the way that rendering is ...
5 years, 11 months ago (2015-01-12 17:24:21 UTC) #24
mstensho (USE GERRIT)
Any progress? If not, I suggest that we drop this CL.
5 years, 10 months ago (2015-02-19 13:52:34 UTC) #25
Savago
On 2015/02/19 13:52:34, mstensho wrote: > Any progress? If not, I suggest that we drop ...
5 years, 9 months ago (2015-03-03 23:04:36 UTC) #26
fantasai
On 2015/03/03 23:04:36, Savago wrote: > On 2015/02/19 13:52:34, mstensho wrote: > > Any progress? ...
5 years, 3 months ago (2015-09-17 18:42:53 UTC) #27
Savago
5 years, 1 month ago (2015-10-30 00:03:13 UTC) #28
Message was sent while issue was closed.
An update:

The W3C CSS WG has decided that the current behavior in Chrome is wrong and will
append the spec to make it clear:
https://lists.w3.org/Archives/Public/www-style/2015Sep/0252.html

That enables to continue work on this. My plan is to port/re-write the patch and
submit it for review in a couple days.


Adenilson Cavalcanti

Powered by Google App Engine
This is Rietveld 408576698