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

Issue 2616093004: [ng_layout] Fix wrong percent_resolution_size (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, 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

Fix wrong percent_resolution_size inside ConstraintSpace::CreateFromLayoutObject. This caused RunOldLayout to use wrong PercentageResolutionSize <main style="width:500px;height:150px;position:relative;border: solid black"> <div style="position:absolute;top:25%;width:50%;background-color:yellow;">hi</div> </main> This used to display at 1/2 width in NGLayout. BUG=635619 [ng_constraint_width] Review-Url: https://codereview.chromium.org/2616093004 Cr-Commit-Position: refs/heads/master@{#442730} Committed: https://chromium.googlesource.com/chromium/src/+/67e0a1510f8a824b0e07c61484bc55c28c2f6c86

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better fix #

Total comments: 2

Patch Set 3 : size->logical_size #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 2 2 chunks +6 lines, -3 lines 3 comments Download

Messages

Total messages: 17 (6 generated)
atotic
ptal
3 years, 11 months ago (2017-01-07 00:50:11 UTC) #3
cbiesinger
https://codereview.chromium.org/2616093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2616093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode75 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:75: box.containingBlockLogicalHeightForContent(IncludeMarginBorderPadding)}; OK, a few questions: - Here you explicitly ...
3 years, 11 months ago (2017-01-09 18:17:10 UTC) #4
atotic
ptal https://codereview.chromium.org/2616093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2616093004/diff/1/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode75 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:75: box.containingBlockLogicalHeightForContent(IncludeMarginBorderPadding)}; On 2017/01/09 at 18:17:10, cbiesinger wrote: > ...
3 years, 11 months ago (2017-01-09 23:22:13 UTC) #5
cbiesinger
lgtm but see comments and nit below. I am not completely sure why this fixes ...
3 years, 11 months ago (2017-01-10 19:45:03 UTC) #6
atotic
On 2017/01/10 at 19:45:03, cbiesinger wrote: > lgtm but see comments and nit below. > ...
3 years, 11 months ago (2017-01-10 21:52:48 UTC) #7
atotic
https://codereview.chromium.org/2616093004/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2616093004/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode56 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:56: available_logical_height}; On 2017/01/10 at 19:45:03, cbiesinger wrote: > While ...
3 years, 11 months ago (2017-01-10 21:53:20 UTC) #8
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/2616093004/40001
3 years, 11 months ago (2017-01-10 21:54:09 UTC) #11
cbiesinger
https://codereview.chromium.org/2616093004/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2616093004/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode74 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:74: NGLogicalSize logical_size = {available_logical_width, available_size is better. But I ...
3 years, 11 months ago (2017-01-10 22:00:50 UTC) #12
atotic
just replying to a comment https://codereview.chromium.org/2616093004/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2616093004/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode74 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:74: NGLogicalSize logical_size = {available_logical_width, ...
3 years, 11 months ago (2017-01-10 23:24:15 UTC) #13
cbiesinger
https://codereview.chromium.org/2616093004/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc File third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc (right): https://codereview.chromium.org/2616093004/diff/40001/third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc#newcode74 third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc:74: NGLogicalSize logical_size = {available_logical_width, On 2017/01/10 23:24:15, atotic wrote: ...
3 years, 11 months ago (2017-01-10 23:26:37 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 23:40:03 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/67e0a1510f8a824b0e07c61484bc...

Powered by Google App Engine
This is Rietveld 408576698