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

Issue 1177833012: Styling for text fragments (Closed)

Created:
5 years, 6 months ago by hansmuller1
Modified:
5 years, 6 months ago
CC:
abarth-chromium, 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

Styling for text fragments This is a completion of Eric's WIP patch: https://codereview.chromium.org/1179663005/ Low level support for creating a paragraph that contains runs of styled text. The styles may be nested. The Paragraph and RenderParagraph classes have been replaced by Inline and RenderInline. Styled text is defined with a tree of InlineText and InlineStyle objects. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/315ac84aea78952e3f569ae84362d9e231143bcf

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Refactored and renamed the TextNode class #

Total comments: 13

Patch Set 3 : Changes per Adam feedback #

Total comments: 1

Patch Set 4 : Update stocks-expected.txt for RenderInline RenderParagraph rename #

Patch Set 5 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -79 lines) Patch
M sky/examples/rendering/interactive_flex.dart View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M sky/examples/rendering/justify_content.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sky/examples/rendering/render_paragraph.dart View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M sky/examples/rendering/touch_demo.dart View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M sky/sdk/lib/editing2/editable_text.dart View 1 1 chunk +1 line, -3 lines 0 comments Download
M sky/sdk/lib/rendering/paragraph.dart View 1 2 6 chunks +83 lines, -56 lines 0 comments Download
M sky/sdk/lib/widgets/basic.dart View 1 2 2 chunks +11 lines, -10 lines 0 comments Download
M sky/tests/framework/stocks-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
hansmuller
PTAL. Note also: assuming this all passes muster, perhaps paragraph.dart should be text.dart? I'd like ...
5 years, 6 months ago (2015-06-16 18:32:00 UTC) #4
Hixie
https://codereview.chromium.org/1177833012/diff/20001/sky/sdk/lib/rendering/paragraph.dart File sky/sdk/lib/rendering/paragraph.dart (right): https://codereview.chromium.org/1177833012/diff/20001/sky/sdk/lib/rendering/paragraph.dart#newcode111 sky/sdk/lib/rendering/paragraph.dart:111: class TextNode { why is this one class with ...
5 years, 6 months ago (2015-06-16 19:20:07 UTC) #5
hansmuller
https://codereview.chromium.org/1177833012/diff/20001/sky/sdk/lib/rendering/paragraph.dart File sky/sdk/lib/rendering/paragraph.dart (right): https://codereview.chromium.org/1177833012/diff/20001/sky/sdk/lib/rendering/paragraph.dart#newcode111 sky/sdk/lib/rendering/paragraph.dart:111: class TextNode { On 2015/06/16 19:20:06, Hixie wrote: > ...
5 years, 6 months ago (2015-06-16 19:30:13 UTC) #6
hansmuller
Updated per Ian's feedback. PTAL.
5 years, 6 months ago (2015-06-16 21:10:04 UTC) #7
abarth-chromium
https://codereview.chromium.org/1177833012/diff/40001/sky/sdk/lib/rendering/paragraph.dart File sky/sdk/lib/rendering/paragraph.dart (right): https://codereview.chromium.org/1177833012/diff/40001/sky/sdk/lib/rendering/paragraph.dart#newcode110 sky/sdk/lib/rendering/paragraph.dart:110: return owner.createText(inlineText.text); too much indent Why not have InlineText ...
5 years, 6 months ago (2015-06-16 22:54:17 UTC) #8
abarth-chromium
This looks great. Just some minor nits about naming and style.
5 years, 6 months ago (2015-06-16 22:54:32 UTC) #9
hansmuller
Excellent feedback about InlineBase et al. https://codereview.chromium.org/1177833012/diff/40001/sky/sdk/lib/rendering/paragraph.dart File sky/sdk/lib/rendering/paragraph.dart (right): https://codereview.chromium.org/1177833012/diff/40001/sky/sdk/lib/rendering/paragraph.dart#newcode110 sky/sdk/lib/rendering/paragraph.dart:110: return owner.createText(inlineText.text); On ...
5 years, 6 months ago (2015-06-16 23:34:36 UTC) #10
abarth-chromium
LGTM https://codereview.chromium.org/1177833012/diff/60001/sky/tests/framework/stocks-expected.txt File sky/tests/framework/stocks-expected.txt (right): https://codereview.chromium.org/1177833012/diff/60001/sky/tests/framework/stocks-expected.txt#newcode36 sky/tests/framework/stocks-expected.txt:36: 2 | | | | | | | ...
5 years, 6 months ago (2015-06-16 23:41:30 UTC) #11
hansmuller
On 2015/06/16 23:41:30, abarth wrote: > LGTM > > https://codereview.chromium.org/1177833012/diff/60001/sky/tests/framework/stocks-expected.txt > File sky/tests/framework/stocks-expected.txt (right): > ...
5 years, 6 months ago (2015-06-16 23:42:38 UTC) #12
hansmuller1
5 years, 6 months ago (2015-06-16 23:48:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
315ac84aea78952e3f569ae84362d9e231143bcf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698