Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement white-space property(pre) #1507
Conversation
hoppipolla-critic-bot
commented
Jan 16, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/562 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
highfive
commented
Jan 16, 2014
|
|
@pcwalton r? |
|
I pointed out some nits and code duplication, but I think this is a sub-optimal solution. Creating line break boxes looks like it works, but really we should not create these fake boxes which are only used to signal the line breaks. Instead, I think Basically the idea is that the the When This seems like it makes the logic much simpler. Also, I think it's ok that we compute newline locations in the text transforming function, but I'm less sure about where we should actually break the text runs. I think what you're doing now is probably useful, since we know it will need to be broken in those spots in all |
|
@metajack, r? Thank you for your kind review~!! |
|
I modified comment(main/layout/inline.rs). |
In order to support line-break by new-line character, Fist, calculate new-line character's position.(fn flush_clump_to_list) Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
In order to support line-break by new-line character, Fist, calculate new-line character's position.(fn flush_clump_to_list) Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
This comment has been minimized.
This comment has been minimized.
metajack
commented on 3d94141
Jan 23, 2014
|
r+ |
This comment has been minimized.
This comment has been minimized.
yichoi
replied
Jan 23, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
metajack
replied
Jan 23, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
metajack
replied
Jan 23, 2014
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
|
saw approval from metajack |
This comment has been minimized.
This comment has been minimized.
|
merging deokjinkim/servo/white_space = 3d94141 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
This comment has been minimized.
This comment has been minimized.
|
saw approval from metajack |
This comment has been minimized.
This comment has been minimized.
|
saw approval from metajack |
This comment has been minimized.
This comment has been minimized.
|
merging deokjinkim/servo/white_space = 3d94141 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 26fc108 |
In order to support line-break by new-line character, Fist, calculate new-line character's position.(fn flush_clump_to_list) Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
In order to support line-break by new-line character, Fist, calculate new-line character's position.(fn flush_clump_to_list) Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
In order to support line-break by new-line character, Fist, calculate new-line character's position.(fn flush_clump_to_list) Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
In order to support line-break by new-line character, Fist, calculate new-line character's position.(fn flush_clump_to_list) Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)
3d94141
into
servo:master
deokjinkim commentedJan 16, 2014
In order to support line-break by new-line character,
Fist, calculate new-line character's position.(fn flush_clump_to_list)
Second, split box(which includes new-line character) and do line-break.(fn scan_for_lines)