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

Issue 1809143002: [css-grid] Fix wrong type in GridPositionsResolver method (Closed)

Created:
4 years, 9 months ago by Manuel Rego
Modified:
4 years, 9 months ago
Reviewers:
svillar, Timothy Loh, rune
CC:
chromium-reviews, blink-reviews, blink-reviews-style_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@grid-span-last-rename
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Fix wrong type in GridPositionsResolver method We were using size_t instead of int in definiteGridSpanWithSpanAgainstOpposite() for oppositeLine. oppositeLine could be negative and that would be right. Current code is working fine as the result is used as an int later. No new tests, no change of behavior. Committed: https://crrev.com/a97669f29540876fce2b0cc0be546973ecd28dbd Cr-Commit-Position: refs/heads/master@{#381947}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased version after fixing typo in previous patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M third_party/WebKit/Source/core/style/GridPositionsResolver.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (4 generated)
Manuel Rego
Very simple patch.
4 years, 9 months ago (2016-03-17 15:58:50 UTC) #2
rune
https://codereview.chromium.org/1809143002/diff/1/third_party/WebKit/Source/core/style/GridPositionsResolver.cpp File third_party/WebKit/Source/core/style/GridPositionsResolver.cpp (right): https://codereview.chromium.org/1809143002/diff/1/third_party/WebKit/Source/core/style/GridPositionsResolver.cpp#newcode153 third_party/WebKit/Source/core/style/GridPositionsResolver.cpp:153: static GridSpan definiteGridSpanWithSpanAgainstOpposite(int opossiteLine, const GridPosition& position, GridPositionSide side) ...
4 years, 9 months ago (2016-03-17 18:30:16 UTC) #3
svillar
I guess it could cause problems on architectures where sizeof(size_t) != sizeof(int). lgtm with the ...
4 years, 9 months ago (2016-03-18 09:24:33 UTC) #4
Manuel Rego
Thanks for the reviews. https://codereview.chromium.org/1809143002/diff/1/third_party/WebKit/Source/core/style/GridPositionsResolver.cpp File third_party/WebKit/Source/core/style/GridPositionsResolver.cpp (right): https://codereview.chromium.org/1809143002/diff/1/third_party/WebKit/Source/core/style/GridPositionsResolver.cpp#newcode153 third_party/WebKit/Source/core/style/GridPositionsResolver.cpp:153: static GridSpan definiteGridSpanWithSpanAgainstOpposite(int opossiteLine, const ...
4 years, 9 months ago (2016-03-18 09:40:02 UTC) #5
rune
lgtm
4 years, 9 months ago (2016-03-18 09:56:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809143002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809143002/20001
4 years, 9 months ago (2016-03-18 11:18:49 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-18 13:15:41 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 13:16:41 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a97669f29540876fce2b0cc0be546973ecd28dbd
Cr-Commit-Position: refs/heads/master@{#381947}

Powered by Google App Engine
This is Rietveld 408576698