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

Issue 1036653002: Clamp shape-margin to zero (Closed)

Created:
5 years, 9 months ago by rwlbuis
Modified:
5 years, 7 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

Clamp shape-margin to zero The shape-margin is supposed to be non-negative, this is hinted at by the spec: http://dev.w3.org/csswg/css-shapes/#shape-margin-property BUG=450598 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194638

Patch Set 1 #

Patch Set 2 : Fix compile #

Total comments: 1

Patch Set 3 : Address review comment #

Total comments: 1

Patch Set 4 : clamp clientWidth/clientHeight #

Patch Set 5 : Add contentWidthExcludingScrollbar #

Total comments: 1

Patch Set 6 : Remove squashed patch #

Total comments: 1

Patch Set 7 : Add another subtest #

Patch Set 8 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-width.html View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A + LayoutTests/fast/shapes/shape-outside-floats/shape-outside-negative-height-crash-width-expected.txt View 1 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/layout/shapes/ShapeOutsideInfo.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 23 (6 generated)
rwlbuis
PTAL. I discussed it with astearns and this seems the way to go.
5 years, 8 months ago (2015-04-07 20:56:00 UTC) #2
Zoltan
https://codereview.chromium.org/1036653002/diff/20001/Source/core/layout/shapes/ShapeOutsideInfo.cpp File Source/core/layout/shapes/ShapeOutsideInfo.cpp (right): https://codereview.chromium.org/1036653002/diff/20001/Source/core/layout/shapes/ShapeOutsideInfo.cpp#newcode156 Source/core/layout/shapes/ShapeOutsideInfo.cpp:156: LayoutUnit maximumValue = m_renderer.containingBlock() ? std::max(m_renderer.containingBlock()->contentWidth(), LayoutUnit()) : LayoutUnit(); ...
5 years, 8 months ago (2015-04-13 20:33:08 UTC) #5
Zoltan
lgtm
5 years, 8 months ago (2015-04-14 17:39:07 UTC) #6
rwlbuis
@leviw PTAL
5 years, 8 months ago (2015-04-14 21:03:35 UTC) #8
leviw_travelin_and_unemployed
https://codereview.chromium.org/1036653002/diff/40001/Source/core/layout/shapes/ShapeOutsideInfo.cpp File Source/core/layout/shapes/ShapeOutsideInfo.cpp (right): https://codereview.chromium.org/1036653002/diff/40001/Source/core/layout/shapes/ShapeOutsideInfo.cpp#newcode157 Source/core/layout/shapes/ShapeOutsideInfo.cpp:157: if (m_renderer.containingBlock() && m_renderer.containingBlock()->contentWidth() > 0) The contentWidth() is ...
5 years, 8 months ago (2015-04-14 21:12:31 UTC) #9
rwlbuis
On 2015/04/14 21:12:31, leviw wrote: > https://codereview.chromium.org/1036653002/diff/40001/Source/core/layout/shapes/ShapeOutsideInfo.cpp > File Source/core/layout/shapes/ShapeOutsideInfo.cpp (right): > > https://codereview.chromium.org/1036653002/diff/40001/Source/core/layout/shapes/ShapeOutsideInfo.cpp#newcode157 > ...
5 years, 8 months ago (2015-04-16 21:31:22 UTC) #10
leviw_travelin_and_unemployed
https://codereview.chromium.org/1036653002/diff/80001/Source/core/css/StylePropertySet.h File Source/core/css/StylePropertySet.h (right): https://codereview.chromium.org/1036653002/diff/80001/Source/core/css/StylePropertySet.h#newcode118 Source/core/css/StylePropertySet.h:118: bool forceOverride() const { return m_forceOverride; } Do you ...
5 years, 8 months ago (2015-04-21 22:58:42 UTC) #11
rwlbuis
On 2015/04/21 22:58:42, leviw wrote: > https://codereview.chromium.org/1036653002/diff/80001/Source/core/css/StylePropertySet.h > File Source/core/css/StylePropertySet.h (right): > > https://codereview.chromium.org/1036653002/diff/80001/Source/core/css/StylePropertySet.h#newcode118 > ...
5 years, 8 months ago (2015-04-22 00:52:01 UTC) #12
leviw_travelin_and_unemployed
https://codereview.chromium.org/1036653002/diff/100001/Source/core/layout/shapes/ShapeOutsideInfo.cpp File Source/core/layout/shapes/ShapeOutsideInfo.cpp (right): https://codereview.chromium.org/1036653002/diff/100001/Source/core/layout/shapes/ShapeOutsideInfo.cpp#newcode156 Source/core/layout/shapes/ShapeOutsideInfo.cpp:156: LayoutUnit maximumValue = m_renderer.containingBlock() ? m_renderer.containingBlock()->contentWidthExcludingScrollbar() : LayoutUnit(); Will ...
5 years, 8 months ago (2015-04-22 01:02:16 UTC) #13
rwlbuis
On 2015/04/22 01:02:16, leviw wrote: > https://codereview.chromium.org/1036653002/diff/100001/Source/core/layout/shapes/ShapeOutsideInfo.cpp > File Source/core/layout/shapes/ShapeOutsideInfo.cpp (right): > > https://codereview.chromium.org/1036653002/diff/100001/Source/core/layout/shapes/ShapeOutsideInfo.cpp#newcode156 > ...
5 years, 8 months ago (2015-04-22 21:01:11 UTC) #14
rwlbuis
On 2015/04/22 21:01:11, rwlbuis wrote: > On 2015/04/22 01:02:16, leviw wrote: > > > https://codereview.chromium.org/1036653002/diff/100001/Source/core/layout/shapes/ShapeOutsideInfo.cpp ...
5 years, 7 months ago (2015-04-28 21:13:07 UTC) #15
leviw_travelin_and_unemployed
Sorry for all the noise on this (and the slow review)! I actually think LayoutUnit ...
5 years, 7 months ago (2015-04-28 21:31:51 UTC) #16
rwlbuis
On 2015/04/28 21:31:51, leviw wrote: > Sorry for all the noise on this (and the ...
5 years, 7 months ago (2015-04-28 23:32:37 UTC) #17
leviw_travelin_and_unemployed
lgtm Sorry for all the runaround!
5 years, 7 months ago (2015-04-28 23:34:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1036653002/140001
5 years, 7 months ago (2015-04-28 23:34:39 UTC) #21
rwlbuis
On 2015/04/28 23:34:02, leviw wrote: > lgtm > > Sorry for all the runaround! No ...
5 years, 7 months ago (2015-04-29 00:17:22 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 00:46:59 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194638

Powered by Google App Engine
This is Rietveld 408576698