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

Issue 1110233003: Update list markers in notify change. (Closed)

Created:
5 years, 7 months ago by dsinclair
Modified:
5 years, 7 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-rendering, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, sof, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Update list markers in notify change. This CL updates the list item code to place the LayoutListMaker into the tree during the NotifyChange phase. This moves the layout tree modification outside of the actual layout walk. BUG=370461 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195060

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Rebase #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Rebase to master #

Total comments: 10

Patch Set 10 : Review updates #

Total comments: 1

Patch Set 11 : #

Patch Set 12 : Rebase to master #

Patch Set 13 : Add Rebaseline #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -77 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutListItem.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/layout/LayoutListItem.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +20 lines, -50 lines 0 comments Download
M Source/core/layout/LayoutState.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/layout/TextAutosizer.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/layout/TextAutosizer.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -20 lines 1 comment Download
M Source/core/layout/line/LineLayoutState.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 32 (7 generated)
dsinclair
PTAL. This is the implementation we discussed in the meeting where we move updateListMarkers to ...
5 years, 7 months ago (2015-04-29 18:58:23 UTC) #2
ojan
This mostly looks good. https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/LayoutListItem.cpp File Source/core/layout/LayoutListItem.cpp (right): https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/LayoutListItem.cpp#newcode102 Source/core/layout/LayoutListItem.cpp:102: containingBlock()->setPreferredLogicalWidthsDirty(); I'm not 100% sure, ...
5 years, 7 months ago (2015-04-30 02:56:45 UTC) #3
ojan
https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/LayoutListItem.h File Source/core/layout/LayoutListItem.h (right): https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/LayoutListItem.h#newcode77 Source/core/layout/LayoutListItem.h:77: virtual void subtreeDidChange() override; s/override/final
5 years, 7 months ago (2015-04-30 03:31:04 UTC) #4
dsinclair
PTAL. https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/LayoutListItem.cpp File Source/core/layout/LayoutListItem.cpp (right): https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/LayoutListItem.cpp#newcode102 Source/core/layout/LayoutListItem.cpp:102: containingBlock()->setPreferredLogicalWidthsDirty(); On 2015/04/30 at 02:56:45, ojan wrote: > ...
5 years, 7 months ago (2015-04-30 17:52:30 UTC) #5
ojan
Other than the text autosizing thing, this looks great. https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/TextAutosizer.cpp File Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/TextAutosizer.cpp#newcode479 Source/core/layout/TextAutosizer.cpp:479: ...
5 years, 7 months ago (2015-05-01 01:09:55 UTC) #7
skobes
https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/TextAutosizer.cpp File Source/core/layout/TextAutosizer.cpp (right): https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/TextAutosizer.cpp#newcode479 Source/core/layout/TextAutosizer.cpp:479: if (parent->isListItem()) { On 2015/05/01 01:09:55, ojan wrote: > ...
5 years, 7 months ago (2015-05-01 17:58:16 UTC) #8
dsinclair
On 2015/05/01 at 17:58:16, skobes wrote: > https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/TextAutosizer.cpp > File Source/core/layout/TextAutosizer.cpp (right): > > https://codereview.chromium.org/1110233003/diff/80001/Source/core/layout/TextAutosizer.cpp#newcode479 ...
5 years, 7 months ago (2015-05-01 21:22:09 UTC) #9
skobes
On 2015/05/01 21:22:09, dsinclair wrote: > The problem comes when the listItemMarker is inside something ...
5 years, 7 months ago (2015-05-01 23:07:17 UTC) #10
dsinclair
On 2015/05/01 at 23:07:17, skobes wrote: > On 2015/05/01 21:22:09, dsinclair wrote: > > The ...
5 years, 7 months ago (2015-05-02 00:18:33 UTC) #11
skobes
On 2015/05/02 00:18:33, dsinclair wrote: > The marker is inserted with the first line box ...
5 years, 7 months ago (2015-05-02 00:27:35 UTC) #12
dsinclair
On 2015/05/02 at 00:27:35, skobes wrote: > Yes we should try to ensure that all ...
5 years, 7 months ago (2015-05-02 00:50:04 UTC) #13
skobes
lgtm
5 years, 7 months ago (2015-05-02 00:59:59 UTC) #14
esprehn
https://codereview.chromium.org/1110233003/diff/160001/Source/core/layout/LayoutListItem.cpp File Source/core/layout/LayoutListItem.cpp (left): https://codereview.chromium.org/1110233003/diff/160001/Source/core/layout/LayoutListItem.cpp#oldcode285 Source/core/layout/LayoutListItem.cpp:285: layoutState->setFlowThread(nullptr); can we get rid of the setter now? ...
5 years, 7 months ago (2015-05-06 05:17:53 UTC) #15
dsinclair
https://codereview.chromium.org/1110233003/diff/160001/Source/core/layout/LayoutListItem.cpp File Source/core/layout/LayoutListItem.cpp (left): https://codereview.chromium.org/1110233003/diff/160001/Source/core/layout/LayoutListItem.cpp#oldcode285 Source/core/layout/LayoutListItem.cpp:285: layoutState->setFlowThread(nullptr); On 2015/05/06 at 05:17:52, esprehn wrote: > can ...
5 years, 7 months ago (2015-05-06 13:25:06 UTC) #16
dsinclair
5 years, 7 months ago (2015-05-06 13:25:07 UTC) #17
dsinclair
5 years, 7 months ago (2015-05-06 13:25:10 UTC) #18
esprehn
https://codereview.chromium.org/1110233003/diff/180001/Source/core/layout/LayoutListItem.cpp File Source/core/layout/LayoutListItem.cpp (right): https://codereview.chromium.org/1110233003/diff/180001/Source/core/layout/LayoutListItem.cpp#newcode50 Source/core/layout/LayoutListItem.cpp:50: notifyOfSubtreeChange(); This isn't right though, it's like calling setNeedsStyleRecalc ...
5 years, 7 months ago (2015-05-06 16:10:28 UTC) #19
dsinclair
On 2015/05/06 at 16:10:28, esprehn wrote: > https://codereview.chromium.org/1110233003/diff/180001/Source/core/layout/LayoutListItem.cpp > File Source/core/layout/LayoutListItem.cpp (right): > > https://codereview.chromium.org/1110233003/diff/180001/Source/core/layout/LayoutListItem.cpp#newcode50 ...
5 years, 7 months ago (2015-05-06 17:10:15 UTC) #20
esprehn
lgtm
5 years, 7 months ago (2015-05-06 21:15:13 UTC) #21
dsinclair
chrishtr, pdr or wangxainzhu the below test is failing on the bots with this patch ...
5 years, 7 months ago (2015-05-07 00:09:44 UTC) #23
Xianzhu
On 2015/05/07 00:09:44, dsinclair wrote: > chrishtr, pdr or wangxainzhu the below test is failing ...
5 years, 7 months ago (2015-05-07 01:11:10 UTC) #25
dsinclair
On 2015/05/07 at 01:11:10, wangxianzhu wrote: > On 2015/05/07 00:09:44, dsinclair wrote: > > chrishtr, ...
5 years, 7 months ago (2015-05-07 15:17:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1110233003/230001
5 years, 7 months ago (2015-05-07 15:18:14 UTC) #29
commit-bot: I haz the power
Committed patchset #13 (id:230001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195060
5 years, 7 months ago (2015-05-07 16:51:56 UTC) #30
brucedawson
5 years, 7 months ago (2015-05-11 18:02:29 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/1110233003/diff/230001/Source/core/layout/Tex...
File Source/core/layout/TextAutosizer.cpp (right):

https://codereview.chromium.org/1110233003/diff/230001/Source/core/layout/Tex...
Source/core/layout/TextAutosizer.cpp:463: float multiplier =
clusterMultiplier(cluster);
This variable shadows the same named parameter to this function. This creates
some reader ambiguity in the code because it is not clear whether multiplier on
line 472 is supposed to refer to this multiplier or the function parameter.

Similarly, it is not clear to a reader whether this line is supposed to affect
the return value of the function.

In other words, the code is not necessarily buggy, but it is also not clearly
correct. Probably worth renaming or fixing to avoid possible confusion.

Powered by Google App Engine
This is Rietveld 408576698