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

Issue 2284983002: [layoutng] Implement state machine for async layout (Closed)

Created:
4 years, 3 months ago by cbiesinger
Modified:
4 years, 3 months ago
CC:
chromium-reviews, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[layoutng] Implement state machine for async layout This turned out to be more involved than I expected, because I had to make more classes garbage-collected in order to make them members. I later learned that I could have gotten by with not making some of them gc'd and instead just tracing them (as described in the last part of "Field Errors" in https://www.chromium.org/developers/blink-gc-plugin-errors), so let me know if you want me to go back to that approach. This also removes NGBoxIterator in favor of just traversing nextSibling manually; with the async code, this works more naturally. I also changed NGBox to always point to a layout object, and using nullptr when it is not pointing to one, with it being garbage collected that also worked more naturally that way. R=eae@chromium.org, ikilpatrick@chromium.org, glebl@chromium.org BUG=635619 Committed: https://chromium.googlesource.com/chromium/src/+/610b75f9d65f2e849fd6505e21c475020862f6e9

Patch Set 1 #

Patch Set 2 : remove outdated todo #

Total comments: 2

Patch Set 3 : NOTREACHED, also fix the windows compile error #

Total comments: 1

Messages

Total messages: 18 (10 generated)
cbiesinger
4 years, 3 months ago (2016-08-26 23:19:22 UTC) #1
eae
LGTM https://codereview.chromium.org/2284983002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2284983002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode78 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:78: }; ASSERT_NOT_REACHED (or whateher the DCHECK equiv is).
4 years, 3 months ago (2016-08-26 23:47:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2284983002/40001
4 years, 3 months ago (2016-08-29 15:48:26 UTC) #7
cbiesinger
https://codereview.chromium.org/2284983002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2284983002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode78 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:78: }; On 2016/08/26 23:47:38, eae wrote: > ASSERT_NOT_REACHED (or ...
4 years, 3 months ago (2016-08-29 15:49:20 UTC) #8
ikilpatrick
lgtm https://codereview.chromium.org/2284983002/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2284983002/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode24 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:24: switch (state_) { what does this look like ...
4 years, 3 months ago (2016-08-29 16:35:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2284983002/40001
4 years, 3 months ago (2016-08-29 17:52:18 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/610b75f9d65f2e849fd6505e21c475020862f6e9 Cr-Commit-Position: refs/heads/master@{#415027}
4 years, 3 months ago (2016-08-29 19:51:26 UTC) #16
cbiesinger
4 years, 3 months ago (2016-08-29 19:52:28 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
610b75f9d65f2e849fd6505e21c475020862f6e9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698