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

Issue 1332233002: Invalidate whitespace text on text color changes (Closed)

Created:
5 years, 3 months ago by pdr.
Modified:
5 years, 3 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-layout_chromium.org, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Invalidate whitespace text on text color changes This patch updates the optimization added in [1] to invalidate whitespace text on color changes because whitespace text can have decorations such as underlines which still need to repaint. The big idea of the optimization in [1] is to not unnecessarily repaint expensive items such as images that are in an <a> element. On hover, <a> will change color and underline styles which should not affect images. This patch adds a test to prove this optimization still works and prevents it from breaking in the future. [1] https://src.chromium.org/viewvc/blink?view=rev&revision=152046 BUG=529944 Committed: https://crrev.com/865c4bd7edd70fad53c2ae48b754ec8fca6f5e60 git-svn-id: svn://svn.chromium.org/blink/trunk@202164 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated patch to skip brs, updated expectations #

Total comments: 1

Patch Set 3 : TextOrColorChanged -> TextDecorationOrColorChanged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -10 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/repaint/inline-outline-repaint-2-expected.txt View 1 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/paint/invalidation/non-text-link-invalidation-optimization.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/paint/invalidation/non-text-link-invalidation-optimization-expected.txt View 1 chunk +33 lines, -0 lines 0 comments Download
M LayoutTests/paint/invalidation/spv2/inline-outline-repaint-2.html View 1 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/paint/invalidation/text-decoration-invalidation.html View 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/paint/invalidation/text-decoration-invalidation-expected.html View 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutObject.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/style/ComputedStyle.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/style/StyleDifference.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332233002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332233002/1
5 years, 3 months ago (2015-09-11 05:48:38 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/105800)
5 years, 3 months ago (2015-09-11 06:39:55 UTC) #4
pdr.
5 years, 3 months ago (2015-09-11 06:50:22 UTC) #6
pdr.
5 years, 3 months ago (2015-09-11 06:50:33 UTC) #7
chrishtr
https://codereview.chromium.org/1332233002/diff/1/Source/core/layout/LayoutObject.cpp File Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1332233002/diff/1/Source/core/layout/LayoutObject.cpp#newcode1737 Source/core/layout/LayoutObject.cpp:1737: if (isText() || style()->hasBorder() || style()->hasOutline() || style()->isBackgroundColorCurrentColor()) Add ...
5 years, 3 months ago (2015-09-11 16:49:19 UTC) #8
pdr.
On 2015/09/11 at 16:49:19, chrishtr wrote: > https://codereview.chromium.org/1332233002/diff/1/Source/core/layout/LayoutObject.cpp > File Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/1332233002/diff/1/Source/core/layout/LayoutObject.cpp#newcode1737 ...
5 years, 3 months ago (2015-09-11 19:50:42 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332233002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332233002/20001
5 years, 3 months ago (2015-09-11 19:50:59 UTC) #11
chrishtr
https://codereview.chromium.org/1332233002/diff/20001/Source/core/layout/LayoutObject.cpp File Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1332233002/diff/20001/Source/core/layout/LayoutObject.cpp#newcode1736 Source/core/layout/LayoutObject.cpp:1736: if (diff.textOrColorChanged() && !diff.needsPaintInvalidation()) { Let's change to textDecorationOrColorChanged().
5 years, 3 months ago (2015-09-11 19:54:49 UTC) #12
pdr.
On 2015/09/11 at 19:54:49, chrishtr wrote: > https://codereview.chromium.org/1332233002/diff/20001/Source/core/layout/LayoutObject.cpp > File Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/1332233002/diff/20001/Source/core/layout/LayoutObject.cpp#newcode1736 ...
5 years, 3 months ago (2015-09-11 19:58:40 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332233002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332233002/40001
5 years, 3 months ago (2015-09-11 19:58:56 UTC) #15
chrishtr
lgtm
5 years, 3 months ago (2015-09-11 19:59:24 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-11 23:00:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332233002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332233002/40001
5 years, 3 months ago (2015-09-11 23:01:39 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=202164
5 years, 3 months ago (2015-09-11 23:10:13 UTC) #21
pdr.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1345833003/ by pdr@chromium.org. ...
5 years, 3 months ago (2015-09-15 19:54:26 UTC) #22
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:27:04 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/865c4bd7edd70fad53c2ae48b754ec8fca6f5e60

Powered by Google App Engine
This is Rietveld 408576698