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

Issue 251783004: Don't paint below image's baseline unless it is selected. (Closed)

Created:
6 years, 8 months ago by rhogan
Modified:
6 years, 7 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., ojan, rune+blink
Visibility:
Public.

Description

Don't paint below image's baseline unless it is selected. We only need to paint below an inline image's baseline if it is selected, otherwise we can just paint the image itself. When an image's selection state changes we need to update the cached paint rect if it has a layer, i.e. is positioned, so that the correct area gets painted next time around. This was the 'real' fix for http://webkit.org/b/22472 - note that the reduction there only ever failed because the image was relatively positioned. BUG=238449 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174301

Patch Set 1 #

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Total comments: 5

Patch Set 5 : Updated #

Patch Set 6 : Updated #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -7 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/images/do-not-paint-below-image-baseline.html View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A + LayoutTests/fast/images/do-not-paint-below-image-baseline-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A + LayoutTests/virtual/deferred/fast/images/do-not-paint-below-image-baseline-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderReplaced.cpp View 1 2 3 4 3 chunks +10 lines, -3 lines 3 comments Download

Messages

Total messages: 10 (0 generated)
rhogan
6 years, 7 months ago (2014-05-01 20:56:51 UTC) #1
Julien - ping for review
https://codereview.chromium.org/251783004/diff/60001/LayoutTests/fast/images/do-not-paint-below-image-baseline.html File LayoutTests/fast/images/do-not-paint-below-image-baseline.html (right): https://codereview.chromium.org/251783004/diff/60001/LayoutTests/fast/images/do-not-paint-below-image-baseline.html#newcode26 LayoutTests/fast/images/do-not-paint-below-image-baseline.html:26: <img class="before" src="resources/59.jpg"> You know that I like description ...
6 years, 7 months ago (2014-05-02 00:23:35 UTC) #2
Julien - ping for review
6 years, 7 months ago (2014-05-02 00:23:51 UTC) #3
rhogan
https://codereview.chromium.org/251783004/diff/60001/Source/core/rendering/RenderReplaced.cpp File Source/core/rendering/RenderReplaced.cpp (right): https://codereview.chromium.org/251783004/diff/60001/Source/core/rendering/RenderReplaced.cpp#newcode584 Source/core/rendering/RenderReplaced.cpp:584: layer()->repainter().computeRepaintRects(containerForRepaint()); On 2014/05/02 00:23:35, Julien Chaffraix - PST wrote: ...
6 years, 7 months ago (2014-05-02 15:36:27 UTC) #4
Julien - ping for review
https://codereview.chromium.org/251783004/diff/90001/Source/core/rendering/RenderReplaced.cpp File Source/core/rendering/RenderReplaced.cpp (right): https://codereview.chromium.org/251783004/diff/90001/Source/core/rendering/RenderReplaced.cpp#newcode584 Source/core/rendering/RenderReplaced.cpp:584: layer()->repainter().computeRepaintRects(containerForRepaint()); Whenever RenderLayer needs to recompute its repaint rects, ...
6 years, 7 months ago (2014-05-16 12:41:46 UTC) #5
rhogan
https://codereview.chromium.org/251783004/diff/90001/Source/core/rendering/RenderReplaced.cpp File Source/core/rendering/RenderReplaced.cpp (right): https://codereview.chromium.org/251783004/diff/90001/Source/core/rendering/RenderReplaced.cpp#newcode584 Source/core/rendering/RenderReplaced.cpp:584: layer()->repainter().computeRepaintRects(containerForRepaint()); On 2014/05/16 12:41:46, Julien Chaffraix - CET wrote: ...
6 years, 7 months ago (2014-05-16 21:05:47 UTC) #6
Julien - ping for review
Assuming no extra chicken-and-egg issue, LGTM https://codereview.chromium.org/251783004/diff/90001/Source/core/rendering/RenderReplaced.cpp File Source/core/rendering/RenderReplaced.cpp (right): https://codereview.chromium.org/251783004/diff/90001/Source/core/rendering/RenderReplaced.cpp#newcode584 Source/core/rendering/RenderReplaced.cpp:584: layer()->repainter().computeRepaintRects(containerForRepaint()); On 2014/05/16 ...
6 years, 7 months ago (2014-05-19 09:31:36 UTC) #7
rhogan
The CQ bit was checked by robhogan@gmail.com
6 years, 7 months ago (2014-05-19 17:57:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robhogan@gmail.com/251783004/90001
6 years, 7 months ago (2014-05-19 17:57:59 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 18:10:13 UTC) #10
Message was sent while issue was closed.
Change committed as 174301

Powered by Google App Engine
This is Rietveld 408576698