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

Issue 1896803002: Fix TextAutosizer not to scheduleRelayout() by MarkContainerChainInLayout (Closed)

Created:
4 years, 8 months ago by kojii
Modified:
4 years, 8 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() by MarkContainerChainInLayout This patch fixes TextAutosizer not to scheduleRelayout() when its relayoutBehavior is AlreadyInLayout. r378639 solved the same issue only when markContainerChainForLayout() has SubtreeLayoutScope, but TextAutosizer does not always have SubtreeLayoutScope. To solve this case, MarkContainerChainInLayout is added to mark container chain without scheduleRelayout(), even when SubtreeLayoutScope is missing. BUG=602908 Committed: https://crrev.com/31c3833651246f431a837c65e8f61b20aa1e00b1 Cr-Commit-Position: refs/heads/master@{#388410}

Patch Set 1 #

Total comments: 5

Patch Set 2 : RELEASE_ASSERT #

Patch Set 3 : Revert RELEASE_ASSERT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -22 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 5 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 1 chunk +3 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextAutosizer.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (6 generated)
kojii
PTAL, the one we discussed in https://codereview.chromium.org/1887933002. I left one comment in LayoutObject.cpp where I ...
4 years, 8 months ago (2016-04-18 06:32:28 UTC) #5
cbiesinger
lgtm, see my suggestion below https://codereview.chromium.org/1896803002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1896803002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode758 third_party/WebKit/Source/core/layout/LayoutObject.cpp:758: ASSERT(!scheduleRelayout || !layouter); On ...
4 years, 8 months ago (2016-04-18 15:53:46 UTC) #6
kojii
https://codereview.chromium.org/1896803002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1896803002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode758 third_party/WebKit/Source/core/layout/LayoutObject.cpp:758: ASSERT(!scheduleRelayout || !layouter); On 2016/04/18 at 15:53:46, cbiesinger wrote: ...
4 years, 8 months ago (2016-04-19 06:39:08 UTC) #7
cbiesinger
On 2016/04/19 06:39:08, kojii wrote: > https://codereview.chromium.org/1896803002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp > File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/1896803002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode758 > ...
4 years, 8 months ago (2016-04-19 20:37:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896803002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896803002/40001
4 years, 8 months ago (2016-04-20 02:45:11 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-20 02:49:44 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:20:16 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/31c3833651246f431a837c65e8f61b20aa1e00b1
Cr-Commit-Position: refs/heads/master@{#388410}

Powered by Google App Engine
This is Rietveld 408576698