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

Issue 1200233002: Use the baseline information exposed by C++ to pipe baseline data through RenderBox. (Closed)

Created:
5 years, 6 months ago by Hixie
Modified:
5 years, 6 months ago
Reviewers:
eseidel
CC:
gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Use the baseline information exposed by C++ to pipe baseline data through RenderBox. This also fixes the C++ side to give the right baseline information. Previously it was giving the baseline distance for the font, but not for the actual laid-out text. I considered also providing a "defaultBaseline" accessor that returns the distance for the actual dominant baseline, but it turns out right now we never decide the baseline is ideographic. We always use the alphabetic baseline. We should probably fix that... R=eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/134f2e4b8c004d70caca54182064cd945da805d5

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -15 lines) Patch
M sky/engine/core/dom/Element.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderBlock.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderBlock.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderBox.h View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M sky/engine/core/rendering/RenderFlexibleBox.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderFlexibleBox.cpp View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M sky/engine/core/rendering/RenderParagraph.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderParagraph.cpp View 1 2 3 4 5 1 chunk +9 lines, -2 lines 0 comments Download
A sky/examples/rendering/baseline.dart View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/block.dart View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/box.dart View 1 2 3 5 chunks +79 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/flex.dart View 1 2 3 7 chunks +13 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/paragraph.dart View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M sky/sdk/lib/rendering/stack.dart View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
eseidel
lgtm
5 years, 6 months ago (2015-06-23 23:02:35 UTC) #2
Hixie
I need to document that the baseline data is only ok after layout. probably add ...
5 years, 6 months ago (2015-06-23 23:30:29 UTC) #3
Hixie
also, the logic I added in Flex is all wrong for horizontal. I need to ...
5 years, 6 months ago (2015-06-23 23:40:22 UTC) #4
Hixie
not sure what stack should do...
5 years, 6 months ago (2015-06-23 23:41:38 UTC) #5
abarth-chromium
On 2015/06/23 at 23:41:38, ianh wrote: > not sure what stack should do... Probably take ...
5 years, 6 months ago (2015-06-24 01:33:10 UTC) #6
eseidel
https://codereview.chromium.org/1200233002/diff/80001/sky/engine/core/dom/Element.cpp File sky/engine/core/dom/Element.cpp (right): https://codereview.chromium.org/1200233002/diff/80001/sky/engine/core/dom/Element.cpp#newcode978 sky/engine/core/dom/Element.cpp:978: return box->firstLineBoxBaseline(false, AlphabeticBaseline); Please use an enum instead of ...
5 years, 6 months ago (2015-06-24 23:20:35 UTC) #7
Hixie
On 2015/06/24 at 23:20:35, eseidel wrote: > Please use an enum instead of a bool ...
5 years, 6 months ago (2015-06-24 23:31:47 UTC) #8
Hixie
5 years, 6 months ago (2015-06-25 00:01:18 UTC) #9
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
134f2e4b8c004d70caca54182064cd945da805d5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698