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

Issue 2692643002: Change how NGConstraintSpaceBuilder specified destination space. (Closed)

Created:
3 years, 10 months ago by atotic
Modified:
3 years, 10 months ago
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, kinuko+watch, 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

Change how NGConstraintSpaceBuilder specified destination space. The way writing_mode for NGConstraintSpaceBuilder was set was confusing. This change makes the API more explicit about how output writing mode is set. NGConstraintSpaceBuilder::writing_mode_ is eliminated NGConstraintSpaceBuilder::SetWritingMode is eliminated instead, writing mode becomes a parameter to: NGConstraintSpaceBuilder::ToConstraintSpace(NGWritingMode output_mode) BUG=635619 Review-Url: https://codereview.chromium.org/2692643002 Cr-Commit-Position: refs/heads/master@{#450163} Committed: https://chromium.googlesource.com/chromium/src/+/b22faaaadbb08c37ceca6c55c9d5557966b85b21

Patch Set 1 : Change how NGConstraintSpaceBuilder specified destination space. #

Total comments: 8

Patch Set 2 : CR fixes, merge w master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -60 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc View 1 chunk +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 2 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_node.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc View 1 7 chunks +11 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder_test.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/NGInlineLayoutTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
atotic
ptal
3 years, 10 months ago (2017-02-11 00:43:35 UTC) #3
Gleb Lanbin
just a couple of minor comments. https://codereview.chromium.org/2692643002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2692643002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode731 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:731: FromPlatformWritingMode(Style().getWritingMode())); add a ...
3 years, 10 months ago (2017-02-13 19:33:30 UTC) #4
cbiesinger
I like this concept, but it feels weird to only have this for the writing ...
3 years, 10 months ago (2017-02-13 19:41:51 UTC) #6
atotic
ptal. All comments have a response. https://codereview.chromium.org/2692643002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2692643002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode731 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:731: FromPlatformWritingMode(Style().getWritingMode())); On 2017/02/13 ...
3 years, 10 months ago (2017-02-13 21:49:52 UTC) #7
atotic
ptal. All comments have a response. https://codereview.chromium.org/2692643002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2692643002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode731 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:731: FromPlatformWritingMode(Style().getWritingMode())); On 2017/02/13 ...
3 years, 10 months ago (2017-02-13 21:49:54 UTC) #8
Gleb Lanbin
lgtm
3 years, 10 months ago (2017-02-13 21:59:03 UTC) #9
atotic
On 2017/02/13 at 19:41:51, cbiesinger wrote: > I like this concept, but it feels weird ...
3 years, 10 months ago (2017-02-13 23:28:30 UTC) #12
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/2692643002/40001
3 years, 10 months ago (2017-02-13 23:59:10 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 00:07:16 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b22faaaadbb08c37ceca6c55c9d5...

Powered by Google App Engine
This is Rietveld 408576698