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

Issue 2642823008: Introduce NGFloatingObject (Closed)

Created:
3 years, 11 months ago by Gleb Lanbin
Modified:
3 years, 11 months ago
Reviewers:
ikilpatrick
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, dgrogan+ng_chromium.org, atotic+reviews_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

Introduce NGFloatingObject NGFloatingObject holds all information needed to position floats in old/new layout tree. If a float can not determine its position in space (for example because of margin collapsing case) it is added to the fragment's UnpositionedFloats list. When we reach the fragment that can resolve its position in space all pending floats will be positioned and added to the PositionedFloats list. PositionedFloats list is used to create/place FloatingObject in old layout tree. BUG=635619 Review-Url: https://codereview.chromium.org/2642823008 Cr-Commit-Position: refs/heads/master@{#445488} Committed: https://chromium.googlesource.com/chromium/src/+/38e16a89fed5f85376cbb78ade464cc4960d433e

Patch Set 1 #

Total comments: 14

Patch Set 2 : fix comments #

Total comments: 6

Patch Set 3 : reorder break_token_ and git rebase-update #

Patch Set 4 : Update TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 2 3 2 chunks +14 lines, -4 lines 0 comments Download
A third_party/WebKit/Source/core/layout/ng/ng_floating_object.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h View 1 2 5 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc View 1 2 4 chunks +35 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h View 1 5 chunks +32 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc View 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h View 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
Gleb Lanbin
3 years, 11 months ago (2017-01-19 19:30:56 UTC) #3
mstensho (USE GERRIT)
Could you wrap the text in the description at max 80 chars or so per ...
3 years, 11 months ago (2017-01-19 19:37:52 UTC) #4
Gleb Lanbin
On 2017/01/19 19:37:52, mstensho wrote: > Could you wrap the text in the description at ...
3 years, 11 months ago (2017-01-19 19:51:12 UTC) #6
ikilpatrick
https://codereview.chromium.org/2642823008/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_node.h File third_party/WebKit/Source/core/layout/ng/ng_block_node.h (right): https://codereview.chromium.org/2642823008/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_node.h#newcode90 third_party/WebKit/Source/core/layout/ng/ng_block_node.h:90: void FloatPositionUpdated(LayoutObject* parent); maybe additional comment here or within ...
3 years, 11 months ago (2017-01-20 00:03:17 UTC) #7
Gleb Lanbin
https://codereview.chromium.org/2642823008/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_node.h File third_party/WebKit/Source/core/layout/ng/ng_block_node.h (right): https://codereview.chromium.org/2642823008/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_node.h#newcode90 third_party/WebKit/Source/core/layout/ng/ng_block_node.h:90: void FloatPositionUpdated(LayoutObject* parent); On 2017/01/20 00:03:17, ikilpatrick wrote: > ...
3 years, 11 months ago (2017-01-20 00:45:28 UTC) #8
ikilpatrick
lgtm https://codereview.chromium.org/2642823008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h File third_party/WebKit/Source/core/layout/ng/ng_floating_object.h (right): https://codereview.chromium.org/2642823008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h#newcode36 third_party/WebKit/Source/core/layout/ng/ng_floating_object.h:36: Member<NGBlockNode> node; I think this should be a ...
3 years, 11 months ago (2017-01-20 18:11:14 UTC) #9
Gleb Lanbin
https://codereview.chromium.org/2642823008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h File third_party/WebKit/Source/core/layout/ng/ng_floating_object.h (right): https://codereview.chromium.org/2642823008/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h#newcode36 third_party/WebKit/Source/core/layout/ng/ng_floating_object.h:36: Member<NGBlockNode> node; On 2017/01/20 18:11:14, ikilpatrick wrote: > I ...
3 years, 11 months ago (2017-01-20 21:21:59 UTC) #10
ikilpatrick
thanks, lgtm
3 years, 11 months ago (2017-01-20 21:41:33 UTC) #13
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/2642823008/80001
3 years, 11 months ago (2017-01-23 21:11:26 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 21:17:20 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/38e16a89fed5f85376cbb78ade46...

Powered by Google App Engine
This is Rietveld 408576698