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

Issue 275543003: Don't always fully repaint on viewport resize (Closed)

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

Description

Don't always fully repaint on viewport resize This is based on https://codereview.chromium.org/265703012/ and https://codereview.chromium.org/270663003/. - Don't force repaint on FrameView::setNeedsLayout() - Only invalidate if necessary in RenderView::layout() BUG=258219 TEST=fast/repaint/window-resize-*.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174468

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix a typo (Width -> Height in FillLayer.cpp) #

Patch Set 3 : Update FillLayer::needsFullRepaintOnContainerHeightChange() #

Total comments: 1

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : NeedsRebaseline 2 tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -121 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-fixed-center-background-image-expected.txt View 1 2 3 4 chunks +2 lines, -8 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-media-query-expected.txt View 1 2 3 4 chunks +2 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-no-layout-change1-expected.txt View 1 2 3 4 chunks +4 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-no-layout-change2-expected.txt View 1 2 3 4 chunks +4 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-percent-html-expected.txt View 1 2 3 4 chunks +8 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-percent-width-height-expected.txt View 1 2 3 4 chunks +4 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-positioned-bottom-expected.txt View 1 2 3 4 chunks +5 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-positioned-percent-top-expected.txt View 1 2 3 4 chunks +6 lines, -10 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-vertical-writing-mode-expected.txt View 1 2 3 4 chunks +2 lines, -8 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-viewport-percent-expected.txt View 1 2 3 4 chunks +10 lines, -10 lines 0 comments Download
M LayoutTests/platform/win/fast/repaint/overflow-scroll-body-appear-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 chunks +13 lines, -18 lines 0 comments Download
M Source/core/rendering/RenderView.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 3 2 chunks +35 lines, -5 lines 0 comments Download
M Source/core/rendering/style/FillLayer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/style/FillLayer.cpp View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Xianzhu
6 years, 7 months ago (2014-05-08 00:48:52 UTC) #1
esprehn
https://codereview.chromium.org/275543003/diff/1/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/275543003/diff/1/Source/core/frame/FrameView.cpp#newcode1891 Source/core/frame/FrameView.cpp:1891: renderView->setNeedsLayoutWithoutForcingFullRepaint(); This method doesn't exist? https://codereview.chromium.org/275543003/diff/1/Source/core/rendering/RenderView.cpp File Source/core/rendering/RenderView.cpp (right): ...
6 years, 7 months ago (2014-05-08 20:42:02 UTC) #2
Xianzhu
Sorry for requesting early review before submitting the depended CLs. https://codereview.chromium.org/275543003/diff/1/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/275543003/diff/1/Source/core/frame/FrameView.cpp#newcode1891 ...
6 years, 7 months ago (2014-05-08 22:31:08 UTC) #3
Xianzhu
One of the depended changes has been landed (https://codereview.chromium.org/265703012/). The other depended change has been ...
6 years, 7 months ago (2014-05-20 21:15:20 UTC) #4
esprehn
I think this might be broken if the <body> has a background image? https://codereview.chromium.org/275543003/diff/60001/Source/core/rendering/RenderView.cpp File ...
6 years, 7 months ago (2014-05-20 22:27:09 UTC) #5
Xianzhu
https://codereview.chromium.org/275543003/diff/60001/Source/core/rendering/RenderView.cpp File Source/core/rendering/RenderView.cpp (right): https://codereview.chromium.org/275543003/diff/60001/Source/core/rendering/RenderView.cpp#newcode823 Source/core/rendering/RenderView.cpp:823: return rootObject->rendererForRootBackground(); On 2014/05/20 22:27:09, esprehn wrote: > I'm ...
6 years, 7 months ago (2014-05-20 22:49:42 UTC) #6
esprehn
On 2014/05/20 22:49:42, Xianzhu wrote: > https://codereview.chromium.org/275543003/diff/60001/Source/core/rendering/RenderView.cpp > File Source/core/rendering/RenderView.cpp (right): > > https://codereview.chromium.org/275543003/diff/60001/Source/core/rendering/RenderView.cpp#newcode823 > ...
6 years, 7 months ago (2014-05-20 22:51:03 UTC) #7
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 7 months ago (2014-05-20 23:08:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/275543003/60001
6 years, 7 months ago (2014-05-20 23:09:16 UTC) #9
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 7 months ago (2014-05-21 00:00:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/275543003/80001
6 years, 7 months ago (2014-05-21 00:00:44 UTC) #11
Xianzhu
The CQ bit was unchecked by wangxianzhu@chromium.org
6 years, 7 months ago (2014-05-21 15:55:32 UTC) #12
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 7 months ago (2014-05-21 15:55:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/275543003/80001
6 years, 7 months ago (2014-05-21 17:49:46 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 20:25:28 UTC) #15
Message was sent while issue was closed.
Change committed as 174468

Powered by Google App Engine
This is Rietveld 408576698