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 upImplemented display: inline-flex #14978
Conversation
| @@ -1316,6 +1316,39 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> | |||
| self.build_flow_for_block_like(flow, node) | |||
| } | |||
|
|
|||
| /// Builds a fragment for a node with 'display: inline-flex'. | |||
| // Shared code with build_fragment_for_inline_block | |||
| fn build_fragment_for_inline_flex(&mut self, node: &ConcreteThreadSafeLayoutNode) | |||
This comment has been minimized.
This comment has been minimized.
shinglyu
Jan 12, 2017
Author
Member
This function should probably reuse build_fragment_for_inline_block, but I'm not sure if we want to have a build_fragment_for_inline_block_or_inline_flex and pass a flag into it, or should we have two functions and extract the shared part into a helper function.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
KiChjang
Jan 13, 2017
Member
Also, small nit: the Shared code comment needs another slash in front of it to be a doc comment.
|
cc @stshine |
|
r? anyone? |
|
r? @mbrubeck or @pcwalton or @notriddle |
| @@ -1154,6 +1155,7 @@ impl InlineFlow { | |||
| } | |||
| (display::T::inline, vertical_align::T::bottom) | | |||
| (display::T::block, vertical_align::T::bottom) | | |||
| (display::T::inline_flex, vertical_align::T::top) | | |||
This comment has been minimized.
This comment has been minimized.
|
Disclaimer: I do not have access as a reviewer. |
| @@ -1316,6 +1316,39 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode> | |||
| self.build_flow_for_block_like(flow, node) | |||
| } | |||
|
|
|||
| /// Builds a fragment for a node with 'display: inline-flex'. | |||
| // Shared code with build_fragment_for_inline_block | |||
| fn build_fragment_for_inline_flex(&mut self, node: &ConcreteThreadSafeLayoutNode) | |||
This comment has been minimized.
This comment has been minimized.
| @@ -1899,7 +1899,8 @@ pub fn apply_declarations<'a, F, I>(viewport_size: Size2D<Au>, | |||
| % if product == "gecko": | |||
| computed_values::display::T::grid | | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -1,4 +0,0 @@ | |||
| [flex-flexitem-percentage-prescation.htm] | |||
This comment has been minimized.
This comment has been minimized.
|
Let me know when it's ready for squashing. |
|
Looks good to me, nice work :-) |
|
Squash this, then I'll r+ it. |
|
@notriddle Squahed. Thank you! |
|
@bors-servo r+ |
|
|
Implemented display: inline-flex <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #14685 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14978) <!-- Reviewable:end -->
|
|
|
@bors-servo retry internal compiler error |
Implemented display: inline-flex <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #14685 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14978) <!-- Reviewable:end -->
|
|
shinglyu commentedJan 12, 2017
•
edited by larsbergstrom
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is