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

Issue 312193004: Don't force full repaint on size change in style (Closed)

Created:
6 years, 6 months ago by Xianzhu
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, cbiesinger, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Visibility:
Public.

Description

Don't force full repaint on size change in style Move size change case from RenderStyle::diffNeedsFullLayoutAndRepaint() into RenderStyle::diffNeedsFullLayout(). Also changed RenderObject::repaintAfterLayoutIfNeeded() to erase the old rignt and/or bottom borders when needed during incremental invalidation. About tests: - Existing test to be rebaselined: boxes not needing full repaint on resize is now go through incremental invalidation path; - Though rebaselined, existing test with incorrect repaint expectations caused by crbug.com/380472 are still incorrect; - One new test: fast/repaint/resize-with-border.html. BUG=310875 TEST=See "About tests" above R=esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176700

Patch Set 1 #

Total comments: 4

Patch Set 2 : Erase old bottom/right border during incremental invalidation #

Patch Set 3 : Back to Patch Set 1 + cleanups #

Patch Set 4 : Rebase; Update test expectations #

Total comments: 2

Patch Set 5 : Back to initial patch #

Patch Set 6 : For landing #

Patch Set 7 : More rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -10 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/resize-with-border.html View 1 chunk +20 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/resize-with-border-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 3 4 5 6 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Xianzhu
6 years, 6 months ago (2014-06-04 19:25:11 UTC) #1
Xianzhu
ping...
6 years, 6 months ago (2014-06-05 21:17:00 UTC) #2
Julien - ping for review
https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp#newcode1751 Source/core/rendering/RenderObject.cpp:1751: if (!style()->hasBorder() && !style()->boxShadow() && !style()->hasBorderImageOutsets() && !style()->hasOutline()) The ...
6 years, 6 months ago (2014-06-11 17:53:25 UTC) #3
Xianzhu
https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp#newcode1751 Source/core/rendering/RenderObject.cpp:1751: if (!style()->hasBorder() && !style()->boxShadow() && !style()->hasBorderImageOutsets() && !style()->hasOutline()) On ...
6 years, 6 months ago (2014-06-16 16:25:29 UTC) #4
Julien - ping for review
https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp#newcode1751 Source/core/rendering/RenderObject.cpp:1751: if (!style()->hasBorder() && !style()->boxShadow() && !style()->hasBorderImageOutsets() && !style()->hasOutline()) > ...
6 years, 6 months ago (2014-06-16 20:04:24 UTC) #5
Xianzhu
https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/312193004/diff/1/Source/core/rendering/RenderObject.cpp#newcode1751 Source/core/rendering/RenderObject.cpp:1751: if (!style()->hasBorder() && !style()->boxShadow() && !style()->hasBorderImageOutsets() && !style()->hasOutline()) On ...
6 years, 6 months ago (2014-06-16 20:49:16 UTC) #6
Xianzhu
PTAL. Now erase old bottom/right border during incremental invalidation.
6 years, 6 months ago (2014-06-16 21:44:38 UTC) #7
Xianzhu
ping...
6 years, 6 months ago (2014-06-18 03:25:17 UTC) #8
esprehn
On 2014/06/18 at 03:25:17, wangxianzhu wrote: > ping... I'll look tomorrow or get julien to ...
6 years, 6 months ago (2014-06-18 06:10:09 UTC) #9
Xianzhu
I still think Patch Set 1 is correct, but it needs some cleanup. Patch Set ...
6 years, 6 months ago (2014-06-18 22:00:52 UTC) #10
Xianzhu
On 2014/06/18 22:00:52, Xianzhu wrote: > I still think Patch Set 1 is correct, but ...
6 years, 6 months ago (2014-06-18 22:21:06 UTC) #11
Xianzhu
ping...
6 years, 6 months ago (2014-06-19 19:58:03 UTC) #12
esprehn
That old code looks wrong. You seem to be doing two totally different things in ...
6 years, 6 months ago (2014-06-20 08:10:50 UTC) #13
Xianzhu
On 2014/06/20 08:10:50, esprehn wrote: > That old code looks wrong. You seem to be ...
6 years, 6 months ago (2014-06-20 16:57:02 UTC) #14
esprehn
lgtm
6 years, 6 months ago (2014-06-20 19:55:04 UTC) #15
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-06-21 21:51:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/312193004/100001
6 years, 6 months ago (2014-06-21 21:52:16 UTC) #17
Xianzhu
6 years, 6 months ago (2014-06-21 22:40:41 UTC) #18
Message was sent while issue was closed.
Committed patchset #8 manually as r176700 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698