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

Issue 2605093002: Negative margin lengths are legal (Closed)

Created:
3 years, 11 months ago by atotic
Modified:
3 years, 11 months ago
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Negative margin lengths are legal Fix for cbiesinger comment: https://codereview.chromium.org/2568743005#msg16 Tnx to ikilpatrick for making me put these asserts for all code paths, this bug got caught early. BUG=635619 [ng_negmargin] Committed: https://crrev.com/c31508114a74d26be7dd38bd08a047d1533f34df Cr-Commit-Position: refs/heads/master@{#441268}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove DCHECKS #

Total comments: 2

Patch Set 3 : Reinstate size checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
atotic
ptal
3 years, 11 months ago (2016-12-28 18:31:41 UTC) #2
cbiesinger
Fyi I won't be able to review this until the new year On Dec 28, ...
3 years, 11 months ago (2016-12-28 18:55:41 UTC) #4
cbiesinger
Fyi I won't be able to review this until the new year On Dec 28, ...
3 years, 11 months ago (2016-12-28 18:55:41 UTC) #5
atotic
Adding ian as reviewer, just in case you are around.
3 years, 11 months ago (2016-12-28 19:09:15 UTC) #7
mstensho (USE GERRIT)
https://codereview.chromium.org/2605093002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_units.h File third_party/WebKit/Source/core/layout/ng/ng_units.h (right): https://codereview.chromium.org/2605093002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_units.h#newcode353 third_party/WebKit/Source/core/layout/ng/ng_units.h:353: DCHECK_NE(margin_start, NGSizeIndefinite); But -1px is also a valid margin ...
3 years, 11 months ago (2016-12-29 10:28:39 UTC) #9
cbiesinger
https://codereview.chromium.org/2605093002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_units.h File third_party/WebKit/Source/core/layout/ng/ng_units.h (right): https://codereview.chromium.org/2605093002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_units.h#newcode353 third_party/WebKit/Source/core/layout/ng/ng_units.h:353: DCHECK_NE(margin_start, NGSizeIndefinite); On 2016/12/29 10:28:39, mstensho wrote: > But ...
3 years, 11 months ago (2016-12-31 17:29:50 UTC) #11
atotic
ptal. Removed DCHECK completely, since all LayoutUnits for margins are valid. https://codereview.chromium.org/2605093002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_units.h File third_party/WebKit/Source/core/layout/ng/ng_units.h (right): ...
3 years, 11 months ago (2017-01-02 05:53:06 UTC) #12
cbiesinger
> I had a bad assumption that NGSizeIndefinite was equivaled to 0xFFFF. Technically it is ...
3 years, 11 months ago (2017-01-03 20:35:19 UTC) #13
atotic
ptal https://codereview.chromium.org/2605093002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_units.h File third_party/WebKit/Source/core/layout/ng/ng_units.h (left): https://codereview.chromium.org/2605093002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_units.h#oldcode350 third_party/WebKit/Source/core/layout/ng/ng_units.h:350: DCHECK_GE(length, LayoutUnit()); On 2017/01/03 at 20:35:19, cbiesinger wrote: ...
3 years, 11 months ago (2017-01-03 21:14:45 UTC) #16
cbiesinger
lgtm
3 years, 11 months ago (2017-01-03 21:23:25 UTC) #17
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/2605093002/80001
3 years, 11 months ago (2017-01-03 21:29:58 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:80001)
3 years, 11 months ago (2017-01-04 00:45:01 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 00:48:14 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c31508114a74d26be7dd38bd08a047d1533f34df
Cr-Commit-Position: refs/heads/master@{#441268}

Powered by Google App Engine
This is Rietveld 408576698