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

Issue 226373002: [CSS Shapes] shape-margin in percentage units always computes to 0px (Closed)

Created:
6 years, 8 months ago by rwlbuis
Modified:
6 years, 8 months ago
CC:
blink-reviews, zoltan1, dsinclair, bemjb+rendering_chromium.org, eae+blinkwatch, ed+blinkwatch_opera.com, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Shapes] shape-margin in percentage units always computes to 0px Make shape-margin parsing accept percentages and properly compute the length once the percentage is accepted. This is a merge of http://trac.webkit.org/changeset/166787 by Bem Jones-Bey <bjonesbe@adobe.com>;. BUG=353357 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171378

Patch Set 1 #

Patch Set 2 : Add margin specific test #

Total comments: 2

Patch Set 3 : Rebase against ToT #

Patch Set 4 : Fix test #

Total comments: 2

Patch Set 5 : Remove webkit prefixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -15 lines) Patch
M LayoutTests/fast/shapes/parsing/parsing-shape-margin-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/shapes/parsing/parsing-test-utils.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent-expected.html View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/shapes/BoxShapeTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/shapes/Shape.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/rendering/shapes/Shape.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/rendering/shapes/ShapeOutsideInfo.cpp View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Bem Jones-Bey (adobe)
https://codereview.chromium.org/226373002/diff/20001/Source/core/rendering/shapes/ShapeInfo.cpp File Source/core/rendering/shapes/ShapeInfo.cpp (right): https://codereview.chromium.org/226373002/diff/20001/Source/core/rendering/shapes/ShapeInfo.cpp#newcode117 Source/core/rendering/shapes/ShapeInfo.cpp:117: LayoutUnit maximumValue = m_renderer.containingBlock() ? m_renderer.containingBlock()->contentWidth() : LayoutUnit(); Isn't ...
6 years, 8 months ago (2014-04-04 23:03:53 UTC) #1
leviw_travelin_and_unemployed
https://codereview.chromium.org/226373002/diff/20001/Source/core/rendering/shapes/ShapeInfo.cpp File Source/core/rendering/shapes/ShapeInfo.cpp (right): https://codereview.chromium.org/226373002/diff/20001/Source/core/rendering/shapes/ShapeInfo.cpp#newcode117 Source/core/rendering/shapes/ShapeInfo.cpp:117: LayoutUnit maximumValue = m_renderer.containingBlock() ? m_renderer.containingBlock()->contentWidth() : LayoutUnit(); On ...
6 years, 8 months ago (2014-04-07 17:54:38 UTC) #2
rwlbuis
So I think this patch is fine IMHO, but it only passes on Mac. After ...
6 years, 8 months ago (2014-04-10 18:44:02 UTC) #3
Bem Jones-Bey (adobe)
lgtm
6 years, 8 months ago (2014-04-11 20:52:32 UTC) #4
rwlbuis
This patch finally seems to be in good shape :)
6 years, 8 months ago (2014-04-11 20:55:02 UTC) #5
leviw_travelin_and_unemployed
lgtm https://codereview.chromium.org/226373002/diff/60001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html File LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html (right): https://codereview.chromium.org/226373002/diff/60001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html#newcode22 LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html:22: -webkit-shape-margin: 10%; We don't need these prefixes, right? ...
6 years, 8 months ago (2014-04-11 21:04:16 UTC) #6
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 8 months ago (2014-04-11 21:11:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/226373002/80001
6 years, 8 months ago (2014-04-11 21:11:07 UTC) #8
rwlbuis
On 2014/04/11 21:04:16, Levi wrote: > lgtm > > https://codereview.chromium.org/226373002/diff/60001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html > File > LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html > ...
6 years, 8 months ago (2014-04-11 21:12:02 UTC) #9
commit-bot: I haz the power
6 years, 8 months ago (2014-04-11 22:58:51 UTC) #10
Message was sent while issue was closed.
Change committed as 171378

Powered by Google App Engine
This is Rietveld 408576698