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

Issue 2643043003: Constrain width/height to minmax values (Closed)

Created:
3 years, 11 months ago by atotic
Modified:
3 years, 11 months ago
Reviewers:
cbiesinger
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, dgrogan+ng_chromium.org, 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

Constrain width/height to minmax values Width and height were not being constrained to min/max values. Adds a ConstrainByMinMax to ng_lenght_utils This makes another ~10 tests pass. BUG=635619 Review-Url: https://codereview.chromium.org/2643043003 Cr-Commit-Position: refs/heads/master@{#445201} Committed: https://chromium.googlesource.com/chromium/src/+/b5a30a4313c916119d0b137d3c2e0c53a2021a3b

Patch Set 1 #

Patch Set 2 : Fix copypaste error: ResolveWidth->ResolveHeight #

Total comments: 6

Patch Set 3 : CR fixes #

Total comments: 2

Patch Set 4 : Clamp width/height to minmax values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -54 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 2 chunks +2 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc View 1 2 3 11 chunks +57 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc View 1 chunk +58 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 2 3 chunks +24 lines, -20 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (5 generated)
atotic
ptal
3 years, 11 months ago (2017-01-19 19:25:42 UTC) #2
cbiesinger
https://codereview.chromium.org/2643043003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc File third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc (right): https://codereview.chromium.org/2643043003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc#newcode34 third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc:34: LengthResolveType::kContentSize); So, you really need to pass in the ...
3 years, 11 months ago (2017-01-19 22:49:13 UTC) #3
atotic
ptal, all comments addressed. https://codereview.chromium.org/2643043003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc File third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc (right): https://codereview.chromium.org/2643043003/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc#newcode34 third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc:34: LengthResolveType::kContentSize); On 2017/01/19 at 22:49:13, ...
3 years, 11 months ago (2017-01-19 23:47:44 UTC) #4
cbiesinger
I wonder if it would simplify things if we did not use optional and instead ...
3 years, 11 months ago (2017-01-20 21:15:14 UTC) #5
atotic
https://codereview.chromium.org/2643043003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc File third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc (right): https://codereview.chromium.org/2643043003/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc#newcode32 third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc:32: const LengthResolveType& resolve_type) { On 2017/01/20 at 21:15:14, cbiesinger ...
3 years, 11 months ago (2017-01-20 21:22:38 UTC) #6
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/2643043003/60001
3 years, 11 months ago (2017-01-20 21:23:13 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 23:12:20 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b5a30a4313c916119d0b137d3c2e...

Powered by Google App Engine
This is Rietveld 408576698