Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented display: inline-flex #14978

Merged
merged 1 commit into from Jan 23, 2017
Merged

Implemented display: inline-flex #14978

merged 1 commit into from Jan 23, 2017

Conversation

@shinglyu
Copy link
Member

shinglyu commented Jan 12, 2017


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #14685 (github issue number if applicable).
  • There are tests for these changes

This change is Reviewable

@@ -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.

Copy link
@shinglyu

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.

Copy link
@stshine

stshine Jan 13, 2017

Contributor

Yeah, I agree add a flag should be a better solution.

This comment has been minimized.

Copy link
@KiChjang

KiChjang Jan 13, 2017

Member

Also, small nit: the Shared code comment needs another slash in front of it to be a doc comment.

@shinglyu
Copy link
Member Author

shinglyu commented Jan 12, 2017

@shinglyu
Copy link
Member Author

shinglyu commented Jan 12, 2017

r? anyone?
@highfive where are you?

@stshine
Copy link
Contributor

stshine commented Jan 12, 2017

r? @mbrubeck or @pcwalton or @notriddle
I am busy with my job, will try to look later.

@@ -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.

Copy link
@mbrubeck

mbrubeck Jan 12, 2017

Contributor

top should be bottom here

Copy link
Contributor

stshine left a comment

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.

Copy link
@stshine

stshine Jan 13, 2017

Contributor

Yeah, I agree add a flag should be a better solution.

@@ -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.

Copy link
@stshine

stshine Jan 13, 2017

Contributor

Why not also fix inline-grid for stylo?

This comment has been minimized.

Copy link
@shinglyu

shinglyu Jan 18, 2017

Author Member

fixed!

@@ -1,4 +0,0 @@
[flex-flexitem-percentage-prescation.htm]

This comment has been minimized.

Copy link
@stshine

stshine Jan 13, 2017

Contributor

This test actually does not pass.

@shinglyu
Copy link
Member Author

shinglyu commented Jan 18, 2017

Let me know when it's ready for squashing.

@stshine
Copy link
Contributor

stshine commented Jan 18, 2017

Looks good to me, nice work :-)

@notriddle
Copy link
Contributor

notriddle commented Jan 19, 2017

Squash this, then I'll r+ it.

@shinglyu shinglyu force-pushed the shinglyu:inline-flex branch from dd345cb to e31ee04 Jan 23, 2017
@shinglyu
Copy link
Member Author

shinglyu commented Jan 23, 2017

@notriddle Squahed. Thank you!

@notriddle
Copy link
Contributor

notriddle commented Jan 23, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2017

📌 Commit e31ee04 has been approved by notriddle

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2017

Testing commit e31ee04 with merge 9aa4848...

bors-servo added a commit that referenced this pull request Jan 23, 2017
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
Copy link
Contributor

bors-servo commented Jan 23, 2017

💔 Test failed - linux-rel-wpt

@stshine
Copy link
Contributor

stshine commented Jan 23, 2017

@bors-servo retry

internal compiler error

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2017

Testing commit e31ee04 with merge c75946c...

bors-servo added a commit that referenced this pull request Jan 23, 2017
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 bors-servo merged commit e31ee04 into servo:master Jan 23, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

7 participants
You can’t perform that action at this time.