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

Issue 306483011: Combine background repaint conditions in RenderStyle and RenderObject (Closed)

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

Description

Combine background repaint conditions in RenderStyle and RenderObject Combined RenderStyle::needsFullRepaintOnContainer(Width|Height)Change and local function mustRepaintFillLayers() in RenderObject.cpp into RenderObject::mustRepaintFillLayersOn(Width|Height)Change. Added missing logics of the original mustRepaintFillLayers(): - repaint if background-repeat is not repeat and no-repeat; - repaint if background-position is not left or top origin; - don't repaint if background-position is of fixed length; TEST=fast/repaint/background-resize-width.html TEST=fast/repaint/background-resize-height.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175172

Patch Set 1 #

Patch Set 2 : Add missing small-apple.jpg #

Total comments: 4

Patch Set 3 : For landing #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+738 lines, -71 lines) Patch
A LayoutTests/fast/repaint/background-resize-height.html View 1 chunk +94 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/background-resize-height-expected.txt View 1 chunk +227 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/background-resize-width.html View 1 chunk +94 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/background-resize-width-expected.txt View 1 chunk +232 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/resources/small-apple.jpg View 1 Binary file 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 chunks +84 lines, -18 lines 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/FillLayer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/rendering/style/FillLayer.cpp View 1 chunk +0 lines, -44 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Xianzhu
6 years, 7 months ago (2014-05-27 22:18:01 UTC) #1
Xianzhu
ping...
6 years, 6 months ago (2014-05-29 16:34:16 UTC) #2
esprehn
lgtm, this looks fine. Seems like mostly just code moving? Please fix the nits before ...
6 years, 6 months ago (2014-05-29 22:20:11 UTC) #3
Xianzhu
https://codereview.chromium.org/306483011/diff/20001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/306483011/diff/20001/Source/core/rendering/RenderObject.cpp#newcode841 Source/core/rendering/RenderObject.cpp:841: bool RenderObject::borderImageIsLoadedAndCanBeRendered() const On 2014/05/29 22:20:12, esprehn wrote: > ...
6 years, 6 months ago (2014-05-30 00:47:55 UTC) #4
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 00:48:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/306483011/30001
6 years, 6 months ago (2014-05-30 00:50:41 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-05-30 16:00:08 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 16:44:56 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/9648)
6 years, 6 months ago (2014-05-30 16:44:56 UTC) #9
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 17:24:07 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/306483011/50001
6 years, 6 months ago (2014-05-30 17:25:38 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-30 18:41:30 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 19:20:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/6547)
6 years, 6 months ago (2014-05-30 19:20:16 UTC) #14
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 19:20:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/306483011/50001
6 years, 6 months ago (2014-05-30 19:21:50 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 23:28:25 UTC) #17
Message was sent while issue was closed.
Change committed as 175172

Powered by Google App Engine
This is Rietveld 408576698