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

Issue 644073002: Avoid layout when list color changes (Closed)

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

Description

Avoid layout when list color changes Previously when the style of list item changes, we reset style of the list marker, causing unnecessary change of margins (which are reset to initial value) and unnecessary layout. Let the new style use the original margins to avoid the unnecessary change. BUG=397956 TEST=fast/lists/list-color-change-no-layout.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183763

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address mstensho's comments #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -5 lines) Patch
A LayoutTests/fast/lists/list-color-change-no-layout.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/lists/list-color-change-no-layout-expected.txt View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderListItem.cpp View 1 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/rendering/RenderListMarker.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderListMarker.cpp View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Xianzhu
6 years, 2 months ago (2014-10-10 20:12:27 UTC) #2
Xianzhu
ping...
6 years, 2 months ago (2014-10-14 17:04:16 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html File LayoutTests/fast/layout/list-color-change-no-layout.html (right): https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html#newcode5 LayoutTests/fast/layout/list-color-change-no-layout.html:5: document.body.offsetTop; Indentation is normally 4 spaces. https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html#newcode9 LayoutTests/fast/layout/list-color-change-no-layout.html:9: shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", ...
6 years, 2 months ago (2014-10-14 19:06:04 UTC) #5
Xianzhu
Thanks for review! https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html File LayoutTests/fast/layout/list-color-change-no-layout.html (right): https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html#newcode5 LayoutTests/fast/layout/list-color-change-no-layout.html:5: document.body.offsetTop; On 2014/10/14 19:06:03, mstensho wrote: ...
6 years, 2 months ago (2014-10-14 19:33:59 UTC) #6
mstensho (USE GERRIT)
https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html File LayoutTests/fast/layout/list-color-change-no-layout.html (right): https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html#newcode1 LayoutTests/fast/layout/list-color-change-no-layout.html:1: <!DOCTYPE html> Sorry, one more thing: why is the ...
6 years, 2 months ago (2014-10-14 19:51:39 UTC) #7
Xianzhu
https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html File LayoutTests/fast/layout/list-color-change-no-layout.html (right): https://codereview.chromium.org/644073002/diff/1/LayoutTests/fast/layout/list-color-change-no-layout.html#newcode1 LayoutTests/fast/layout/list-color-change-no-layout.html:1: <!DOCTYPE html> On 2014/10/14 19:51:39, mstensho wrote: > Sorry, ...
6 years, 2 months ago (2014-10-14 20:38:42 UTC) #8
mstensho (USE GERRIT)
non-owner lgtm
6 years, 2 months ago (2014-10-14 20:43:22 UTC) #9
Xianzhu
esprehn@ & eseidel@ would you approve?
6 years, 2 months ago (2014-10-15 18:33:34 UTC) #10
esprehn
lgtm, really happy about the work being done to fix these bugs. :)
6 years, 2 months ago (2014-10-15 18:42:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644073002/160001
6 years, 2 months ago (2014-10-15 18:45:09 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 19:21:50 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:160001) as 183763

Powered by Google App Engine
This is Rietveld 408576698