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

Issue 2709083002: Fix incorrectly painted right floats in LayoutNG (Closed)

Created:
3 years, 10 months ago by Gleb Lanbin
Modified:
3 years, 10 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, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, zoltan1, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrectly painted right floats in LayoutNG This patch fixes several problems discovered while investigating the issue with incorrectly painted right floats in LayoutNG. List of changes: 1) NGFloatingObject.parent_space was renamed to original_parent_space This was discussed in http://crrev.com/2679343004 2) While calculating an additional offset for right floats we need to use float's box size == float's fragment inline size + float's margins instead of just float's fragment inline size. 3) Fix the calculation of NGFloatingObject::left_offset (it's used if float is attached to the new parent) for right floats 4) Fix incorrectly attached legacy floating objects. BUG=635619 TESTS=NGBlockLayoutAlgorithmTest::PositionFloatInsideEmptyBlocks, Review-Url: https://codereview.chromium.org/2709083002 Cr-Commit-Position: refs/heads/master@{#452189} Committed: https://chromium.googlesource.com/chromium/src/+/977c1dd577174ab7e8b9fd7686a4fa84011511d5

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -36 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 3 chunks +14 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 6 chunks +52 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_floating_object.h View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Gleb Lanbin
3 years, 10 months ago (2017-02-21 23:59:41 UTC) #3
Gleb Lanbin
3 years, 10 months ago (2017-02-22 00:00:48 UTC) #4
ikilpatrick
lgtm. https://codereview.chromium.org/2709083002/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/2709083002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode213 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:213: LayoutUnit float_box_inline_size = float_margin_box_inline_size? (up to you) https://codereview.chromium.org/2709083002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc ...
3 years, 10 months ago (2017-02-22 18:04:36 UTC) #5
Gleb Lanbin
thanks for the review. https://codereview.chromium.org/2709083002/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/2709083002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode213 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:213: LayoutUnit float_box_inline_size = On 2017/02/22 ...
3 years, 10 months ago (2017-02-22 18:47:17 UTC) #6
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/2709083002/40001
3 years, 10 months ago (2017-02-22 18:48:05 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 20:45:30 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/977c1dd577174ab7e8b9fd7686a4...

Powered by Google App Engine
This is Rietveld 408576698