[CSS Shapes] Normalize margin box size
commit821ff24fe9cc63a10d9ddf9a0b95237566784e9a
authorrob.buis@samsung.com <rob.buis@samsung.com>
Thu, 19 Mar 2015 16:59:32 +0000 (19 16:59 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Thu, 19 Mar 2015 16:59:32 +0000 (19 16:59 +0000)
tree7bd59d5587aeca9e7efef1b8cd5b7364ef12b80e
parent2e386579ce99206428d97088f424b5fbd9864a6a
[CSS Shapes] Normalize margin box size

Since the reference box may end up with negative widths/heights
due to negative margins, clamp to zero for the reference box
calculation in the MarginBox case. Since fixing this (466942)
ends up hitting the ASSERT from bug 450625, fix that by
also clamping the floatMarginBoxWidth to zero since a float
with negative width has no float area.

BUG=450625, 466942

Review URL: https://codereview.chromium.org/1008893002

git-svn-id: svn://svn.chromium.org/blink/trunk@192180 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-negative-margins-expected.txt [new file with mode: 0644]
third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-ellipse-negative-margins.html [new file with mode: 0644]
third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp