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

Issue 2380813002: [CSS Shapes] Properly shrink boxes to avoid shape-outside (Closed)

Created:
4 years, 2 months ago by rwlbuis
Modified:
4 years, 2 months ago
Reviewers:
eae
CC:
chromium-reviews, 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

[CSS Shapes] Properly shrink boxes to avoid shape-outside To determine how much an box needs to shink to avoid a float, the code was only taking into account the first line of the box. This doesn't work when the float has a shape, as it can make it seem like there is more space on the line than there actually is. This patch changes the calculations to take into account the entire height of the box that needs to be shrunk, and thus computes the correct amount of space available. This is a merge of http://trac.webkit.org/changeset/178045 and http://trac.webkit.org/changeset/178064 by Bem Jones-Bey <bjonesbe@adobe.com>;. BUG=427989 Committed: https://crrev.com/67aa2c210c705c00eef054c71d3e88b930d08124 Cr-Commit-Position: refs/heads/master@{#422782}

Patch Set 1 #

Patch Set 2 : V2 #

Patch Set 3 : Reformat #

Patch Set 4 : Upload right version of patch #

Patch Set 5 : Reformat #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-expected.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin-expected.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin-vertical.html View 1 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin-vertical-expected.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin-expected.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin-vertical.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin-vertical-expected.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-vertical.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-vertical-expected.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 1 chunk +10 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
rwlbuis
PTAL.
4 years, 2 months ago (2016-09-28 22:36:21 UTC) #6
eae
LGTM
4 years, 2 months ago (2016-09-29 16:04:34 UTC) #7
rwlbuis
On 2016/09/29 16:04:34, eae wrote: > LGTM Thanks, however see the bug, I think it ...
4 years, 2 months ago (2016-09-29 17:02:20 UTC) #8
rwlbuis
On 2016/09/29 17:02:20, rwlbuis wrote: > On 2016/09/29 16:04:34, eae wrote: > > LGTM > ...
4 years, 2 months ago (2016-10-03 21:31:53 UTC) #10
eae
Ok, thanks for the update!
4 years, 2 months ago (2016-10-03 21:42:54 UTC) #11
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/2380813002/80001
4 years, 2 months ago (2016-10-03 23:34:53 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/272565)
4 years, 2 months ago (2016-10-03 23:49:19 UTC) #16
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/2380813002/80001
4 years, 2 months ago (2016-10-04 12:30:55 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/272980)
4 years, 2 months ago (2016-10-04 12:39:28 UTC) #20
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/2380813002/100001
4 years, 2 months ago (2016-10-04 12:46:26 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 2 months ago (2016-10-04 14:16:39 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 14:20:04 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/67aa2c210c705c00eef054c71d3e88b930d08124
Cr-Commit-Position: refs/heads/master@{#422782}

Powered by Google App Engine
This is Rietveld 408576698