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

Issue 140673006: Fix repaint on :hover for empty elements with a border. (Closed)

Created:
6 years, 10 months ago by andersr
Modified:
6 years, 10 months ago
Reviewers:
kinuko, pdr., rune
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix repaint on :hover for empty elements with a border. If the color changes on :hover, then the border of the element may need to be repainted. Currently, we only repaint if an immediate child has a border, but not if the element itself has a border. This causes a missing repaint in some cases for bordered elements with whitespace-only contents. Fixed by repainting when the element itself has a border. BUG=275044 TEST=automated Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166654

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix rune's issues with the test. #

Patch Set 3 : Fix pdr's issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
A LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/hover-pseudo-borders-whitespace-expected.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
andersr
6 years, 10 months ago (2014-01-29 17:12:57 UTC) #1
rune
https://codereview.chromium.org/140673006/diff/1/LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html File LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html (right): https://codereview.chromium.org/140673006/diff/1/LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html#newcode13 LayoutTests/fast/repaint/hover-pseudo-borders-whitespace.html:13: <script src="resources/repaint.js"></script> Could you perhaps use text-based-repaint.js instead to ...
6 years, 10 months ago (2014-01-29 19:55:49 UTC) #2
kinuko
Sorry, I don't think I'm a good reviewer for this area-- deferring to pdr@ (Also ...
6 years, 10 months ago (2014-01-30 04:55:25 UTC) #3
andersr
https://codereview.chromium.org/140673006/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/140673006/diff/1/Source/core/rendering/RenderObject.cpp#newcode1910 Source/core/rendering/RenderObject.cpp:1910: > This will trigger an unnecessary repaint if you ...
6 years, 10 months ago (2014-01-30 09:36:13 UTC) #4
pdr.
Sorry about the delayed review--we had a Chrome team offsite last week. I think this ...
6 years, 10 months ago (2014-02-03 03:57:25 UTC) #5
pdr.
Excellent! LGTM assuming the bots are happy. I'll go ahead and send this to the ...
6 years, 10 months ago (2014-02-06 19:25:32 UTC) #6
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 10 months ago (2014-02-06 19:25:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andersr@opera.com/140673006/60001
6 years, 10 months ago (2014-02-06 19:25:50 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-06 20:42:26 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=26138
6 years, 10 months ago (2014-02-06 20:42:27 UTC) #10
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 10 months ago (2014-02-06 21:08:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andersr@opera.com/140673006/60001
6 years, 10 months ago (2014-02-06 21:08:53 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 22:06:13 UTC) #13
Message was sent while issue was closed.
Change committed as 166654

Powered by Google App Engine
This is Rietveld 408576698