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

Issue 1887933002: (CANCELED) Fix TextAutosizer not to scheduleRelayout() (Closed)

Created:
4 years, 8 months ago by kojii
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix TextAutosizer not to scheduleRelayout() This patch fixes TextAutosizer not to scheduleRelayout() when it's in layout. LayoutBlockFlow and LayoutFlexibleBox were fixed in r386786, and LayoutGrid was fixed in r387118. This patch fixes all the rest, except TableLayoutAlgorithmAuto:: computeIntrinsicLogicalWidths() which is not easy because it's created only while computing the intrinsic logical width. BUG=602908

Patch Set 1 #

Patch Set 2 : Add all the rest and make it required #

Patch Set 3 : Fix TableLayoutScope not to require SubtreeLayoutScope #

Patch Set 4 : Fix LayoutBlock::simplifiedLayout #

Patch Set 5 : simplifiedLayout #

Total comments: 4

Patch Set 6 : Made SubtreeLayoutScope back to optional #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -9 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.h View 1 2 3 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
kojii
PTAL. I was thinking to fix one by one to so that regressions if any ...
4 years, 8 months ago (2016-04-15 15:10:58 UTC) #3
cbiesinger
https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp File third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode212 third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp:212: // layout, but it's hard to get it here. ...
4 years, 8 months ago (2016-04-15 17:08:08 UTC) #4
kojii
Thank you for your prompt review. https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp File third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp (right): https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp#newcode212 third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp:212: // layout, but ...
4 years, 8 months ago (2016-04-15 17:58:44 UTC) #5
cbiesinger
On 2016/04/15 17:58:44, kojii wrote: > Thank you for your prompt review. > > https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp ...
4 years, 8 months ago (2016-04-15 18:26:46 UTC) #6
kojii
On 2016/04/15 at 18:26:46, cbiesinger wrote: > On 2016/04/15 17:58:44, kojii wrote: > > Thank ...
4 years, 8 months ago (2016-04-18 04:31:51 UTC) #7
cbiesinger
4 years, 8 months ago (2016-04-18 15:55:18 UTC) #8
On 2016/04/18 04:31:51, kojii wrote:
> On 2016/04/15 at 18:26:46, cbiesinger wrote:
> > On 2016/04/15 17:58:44, kojii wrote:
> > > Thank you for your prompt review.
> > > 
> > >
>
https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Sour...
> > > File third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp
> (right):
> > > 
> > >
>
https://codereview.chromium.org/1887933002/diff/80001/third_party/WebKit/Sour...
> > > third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp:212: //
> > > layout, but it's hard to get it here.
> > > On 2016/04/15 at 17:08:08, cbiesinger wrote:
> > > > Hmm yeah that one is tricky...
> > > 
> > > Yeah...or, what we really need is to avoid scheduleLayout() and
> > > SubtreeLayoutScope is needed just because it makes so as of now. We could
> add
> > > another value to MarkingBehavior enum as you and leviw were discussing in
> IRC.
> > > It might look more reasonable?
> > 
> > Yeah maybe. Probably best for a different patch.
> 
> Agreed. I'll try that first, as it makes some of changes in this CL not
> necessary.
> 
> Put this CL on hold.

Commented in the other CL. Let me know once/if you have a new version of this CL
to review!

Powered by Google App Engine
This is Rietveld 408576698