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

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

Created:
5 years, 11 months ago by rwlbuis
Modified:
5 years, 11 months ago
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
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://src.chromium.org/viewvc/blink?view=rev&revision=188850

Patch Set 1 #

Patch Set 2 : Try to fix margin tests #

Patch Set 3 : Add vertical rl tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -4 lines) Patch
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-expected.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A 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 LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin-vertical.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-left-margin-vertical-expected.html View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A 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 LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin-vertical.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-right-margin-vertical-expected.html View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-vertical.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-overflow-hidden-vertical-expected.html View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
rwlbuis
PTAL. This seems almost ready, but two things still left I think: 1. could you ...
5 years, 11 months ago (2015-01-08 16:58:41 UTC) #2
rwlbuis
On 2015/01/08 16:58:41, rwlbuis wrote: > PTAL. This seems almost ready, but two things still ...
5 years, 11 months ago (2015-01-08 21:10:21 UTC) #3
Bem Jones-Bey (adobe)
On 2015/01/08 21:10:21, rwlbuis wrote: > On 2015/01/08 16:58:41, rwlbuis wrote: > > PTAL. This ...
5 years, 11 months ago (2015-01-08 23:57:40 UTC) #4
rwlbuis
On 2015/01/08 23:57:40, Bem Jones-Bey (adobe) wrote: > On 2015/01/08 21:10:21, rwlbuis wrote: > > ...
5 years, 11 months ago (2015-01-09 00:46:38 UTC) #5
rwlbuis
@leviw PTAL
5 years, 11 months ago (2015-01-09 00:47:03 UTC) #7
rwlbuis
On 2015/01/09 00:47:03, rwlbuis wrote: > @leviw PTAL ping again! :)
5 years, 11 months ago (2015-01-22 19:48:45 UTC) #8
leviw_travelin_and_unemployed
Makes sense. LGTM.
5 years, 11 months ago (2015-01-22 19:58:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839843004/40001
5 years, 11 months ago (2015-01-22 19:59:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/97690)
5 years, 11 months ago (2015-01-22 23:39:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839843004/40001
5 years, 11 months ago (2015-01-22 23:59:02 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=188850
5 years, 11 months ago (2015-01-23 03:53:46 UTC) #16
leviw_travelin_and_unemployed
5 years, 8 months ago (2015-04-02 19:36:30 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1054063004/ by leviw@chromium.org.

The reason for reverting is: Caused layout issues on ibm.com. crbug.com/463040.

Powered by Google App Engine
This is Rietveld 408576698