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

Issue 1687503002: Introduce IntrinsicSizingInfo (Closed)

Created:
4 years, 10 months ago by davve
Modified:
4 years, 10 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce IntrinsicSizingInfo Prepare for passing more information along, specifically whether intrinsic sizes are specified, when computing intrinsic sizing information. Do this by introducing a struct carrying the relevant information. No functional change expected. Factor out a part of computeAspectRatioInformationForLayoutBox (now named computeIntrinsicSizingInfoForLayoutBox) and put in a separate function constrainIntrinsicSizeToMinMax. In the process remove a FIXME about moving code back to some undefined previous state that's confusing now that the code has moved around even more. BUG=585467 Committed: https://crrev.com/2bb97b3a880a9ab5bd0be0ed71ab4e3b21d6aede Cr-Commit-Position: refs/heads/master@{#374635}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make passed reference const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -72 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 chunk +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImage.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImage.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.cpp View 1 6 chunks +42 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 chunk +12 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (10 generated)
davve
To be judged together with dependent CL. I made an attempt at going for LengthSize ...
4 years, 10 months ago (2016-02-09 17:38:01 UTC) #2
fs
On 2016/02/09 at 17:38:01, davve wrote: > To be judged together with dependent CL. I ...
4 years, 10 months ago (2016-02-09 18:37:04 UTC) #3
fs
And here's the other nit... https://codereview.chromium.org/1687503002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): https://codereview.chromium.org/1687503002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode177 third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:177: FloatSize LayoutReplaced::constrainIntrinsicSizeToMinMax(IntrinsicSizingInfo& intrinsicSizingInfo) const ...
4 years, 10 months ago (2016-02-09 18:37:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687503002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687503002/20001
4 years, 10 months ago (2016-02-10 08:48:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687503002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687503002/20001
4 years, 10 months ago (2016-02-10 09:44:44 UTC) #12
davve
https://codereview.chromium.org/1687503002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): https://codereview.chromium.org/1687503002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode177 third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:177: FloatSize LayoutReplaced::constrainIntrinsicSizeToMinMax(IntrinsicSizingInfo& intrinsicSizingInfo) const On 2016/02/09 18:37:30, fs wrote: ...
4 years, 10 months ago (2016-02-10 10:10:33 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-10 10:36:37 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 10:37:36 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2bb97b3a880a9ab5bd0be0ed71ab4e3b21d6aede
Cr-Commit-Position: refs/heads/master@{#374635}

Powered by Google App Engine
This is Rietveld 408576698