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

Issue 2840883002: Check if fragment's block size fits into a layout opportunity. (Closed)

Created:
3 years, 8 months ago by Gleb Lanbin
Modified:
3 years, 7 months ago
Reviewers:
ikilpatrick, kojii
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-w3ctests_chromium.org, cbiesinger, chromium-reviews, dgrogan+ng_chromium.org, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check if fragment's block size fits into a layout opportunity. Since we started using LayoutOpportunity iterator for positioning BFC fragments, we can't longer rely on the assumption that FindLayoutOpportunityForFragment will be used for floats only. List of changes: - Change FindLayoutOpportunityForFragment to check if fragment's block size fits into a layout opportunity. - Change NGInlineLayoutAlgorithm to avoid adding font's descent to line_bottom if the text only includes object replacement characters I need it to fix floats-wrap-top-below-002l-ref.xht. BUG=635619 Review-Url: https://codereview.chromium.org/2840883002 Cr-Commit-Position: refs/heads/master@{#467875} Committed: https://chromium.googlesource.com/chromium/src/+/f9d77f770956b1a2e948d54117d066a349680aa5

Patch Set 1 : git rebase-update #

Total comments: 1

Patch Set 2 : normal-flow/max-width-110.xht fails on mac(layoutng and legacy) #

Total comments: 1

Patch Set 3 : add a comment to line_box.Metrics().descent hack #

Patch Set 4 : git rebase-update #

Patch Set 5 : git rebase-update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -105 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 18 chunks +17 lines, -98 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (31 generated)
Gleb Lanbin
3 years, 8 months ago (2017-04-25 19:36:14 UTC) #6
ikilpatrick
lgtm, but wait for koji. https://codereview.chromium.org/2840883002/diff/40001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2840883002/diff/40001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc#newcode479 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc:479: if (!Node()->Text().IsAllSpecialCharacters<IsObjectReplacementCharacter>()) can you ...
3 years, 8 months ago (2017-04-25 19:48:12 UTC) #7
kojii
lgtm w/nit. https://codereview.chromium.org/2840883002/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2840883002/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc#newcode479 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc:479: if (!Node()->Text().IsAllSpecialCharacters<IsObjectReplacementCharacter>()) This doesn't look correct, but ...
3 years, 8 months ago (2017-04-26 00:51:34 UTC) #14
Gleb Lanbin
On 2017/04/26 00:51:34, kojii wrote: > lgtm w/nit. > > https://codereview.chromium.org/2840883002/diff/60001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc > File > third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc ...
3 years, 8 months ago (2017-04-26 19:22:58 UTC) #15
kojii
lgtm, hope I can figure this out in not to far future. Thank you.
3 years, 8 months ago (2017-04-27 01:13:10 UTC) #24
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/2840883002/120001
3 years, 7 months ago (2017-04-28 03:30:17 UTC) #35
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 03:36:22 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/f9d77f770956b1a2e948d54117d0...

Powered by Google App Engine
This is Rietveld 408576698