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

Issue 683373002: Invalidate the frame view when changing the background image of the document or body. (Closed)

Created:
6 years, 1 month ago by chrishtr
Modified:
6 years, 1 month ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Project:
blink
Visibility:
Public.

Description

Invalidate the frame view when changing the background image of the document or body. To do this, add a method to request full paint invalidation on FrameView. This also requires moving the full invalidation code into invalidateTreeIfNeeded() instead of layout(), since otherwise the invalidation requested will not always happen if layout does not occur. In any case, invalidation should be in invalidateTreeIfNeeded(), not layout(). BUG=425872 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184836

Patch Set 1 #

Patch Set 2 : Fixed #

Patch Set 3 : Fixed #

Patch Set 4 : Fixed #

Patch Set 5 : #

Patch Set 6 : Fix #

Patch Set 7 : Merged. #

Patch Set 8 : Cleanup. #

Total comments: 8

Patch Set 9 : Fixed build and addressed nits. #

Patch Set 10 : Fixed tests #

Patch Set 11 : Fixed #

Patch Set 12 : Fixed test. #

Patch Set 13 : Fixed test expectation. #

Patch Set 14 : Fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -33 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/background-image-paint-invalidation-large-abspos-div.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/background-image-paint-invalidation-large-abspos-div-expected.png View 1 2 3 4 5 Binary file 0 comments Download
A LayoutTests/fast/repaint/background-image-paint-invalidation-large-abspos-div-expected.txt View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-background-image-fixed-centered-composited-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-background-image-fixed-centered-expected.txt View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-background-image-generated-expected.txt View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-background-image-non-fixed-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-media-query-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-percent-html-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-percent-width-height-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-positioned-bottom-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-positioned-percent-top-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-vertical-writing-mode-expected.txt View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/repaint/window-resize-viewport-percent-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/platform/linux/fast/repaint/overflow-scroll-body-appear-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (11 generated)
chrishtr
6 years, 1 month ago (2014-10-30 23:26:12 UTC) #2
dsinclair
https://codereview.chromium.org/683373002/diff/140001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/683373002/diff/140001/Source/core/frame/FrameView.cpp#newcode1720 Source/core/frame/FrameView.cpp:1720: // causing double-layout. Can you file a bug to ...
6 years, 1 month ago (2014-10-31 00:14:34 UTC) #4
Xianzhu
https://codereview.chromium.org/683373002/diff/140001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/683373002/diff/140001/Source/core/rendering/RenderBox.cpp#newcode1287 Source/core/rendering/RenderBox.cpp:1287: view()->frameView()->setNeedsFullPaintInvalidation(); Would view()->setNeedsFullPaintInvalidation() work?
6 years, 1 month ago (2014-10-31 16:37:30 UTC) #5
chrishtr
On 2014/10/31 at 16:37:30, wangxianzhu wrote: > https://codereview.chromium.org/683373002/diff/140001/Source/core/rendering/RenderBox.cpp > File Source/core/rendering/RenderBox.cpp (right): > > https://codereview.chromium.org/683373002/diff/140001/Source/core/rendering/RenderBox.cpp#newcode1287 ...
6 years, 1 month ago (2014-10-31 18:13:42 UTC) #6
chrishtr
https://codereview.chromium.org/683373002/diff/140001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/683373002/diff/140001/Source/core/frame/FrameView.cpp#newcode1720 Source/core/frame/FrameView.cpp:1720: // causing double-layout. On 2014/10/31 at 00:14:34, dsinclair wrote: ...
6 years, 1 month ago (2014-10-31 18:22:24 UTC) #7
Xianzhu
On 2014/10/31 18:13:42, chrishtr wrote: > On 2014/10/31 at 16:37:30, wangxianzhu wrote: > > > ...
6 years, 1 month ago (2014-10-31 19:02:13 UTC) #8
chrishtr
I adjusted some of the tests that changed due to the time at which the ...
6 years, 1 month ago (2014-10-31 19:27:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683373002/180001
6 years, 1 month ago (2014-11-01 17:43:32 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/31987)
6 years, 1 month ago (2014-11-01 18:39:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683373002/180001
6 years, 1 month ago (2014-11-03 17:40:28 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/32089)
6 years, 1 month ago (2014-11-03 18:40:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683373002/220001
6 years, 1 month ago (2014-11-04 06:20:23 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/34863)
6 years, 1 month ago (2014-11-04 08:17:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683373002/240001
6 years, 1 month ago (2014-11-04 17:04:01 UTC) #23
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 1 month ago (2014-11-04 17:25:45 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683373002/260001
6 years, 1 month ago (2014-11-04 17:46:35 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 19:32:17 UTC) #28
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as 184836

Powered by Google App Engine
This is Rietveld 408576698