diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-08-23 17:18:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 17:18:31 -0500 |
commit | 474369618965569407d127b1e8c481e757cc59d3 (patch) | |
tree | 0b8de77ba9886000baf5c421f26364b1f77b8fcc /components/layout/fragment.rs | |
parent | bde7135a3be80f8d8a4d15719394eddc97934392 (diff) | |
parent | c5fe2351124c673d1dc4d59355a03654b4fcc541 (diff) | |
download | servo-474369618965569407d127b1e8c481e757cc59d3.tar.gz servo-474369618965569407d127b1e8c481e757cc59d3.zip |
Auto merge of #18179 - davidcl:master, r=jdm
Automatically verify that derive() lists are alphabetically ordered #…
<!-- Please describe your changes on the following line: -->
Automatically verify that derive() lists are alphabetically ordered #18172
---
<!-- 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 #18172 (github issue number if applicable).
<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- 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/18179)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r-- | components/layout/fragment.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index fb3fd23b613..23c8b4fda82 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -574,7 +574,7 @@ impl ScannedTextFragmentInfo { /// Describes how to split a fragment. This is used during line breaking as part of the return /// value of `find_split_info_for_inline_size()`. -#[derive(Debug, Clone)] +#[derive(Clone, Debug)] pub struct SplitInfo { // TODO(bjz): this should only need to be a single character index, but both values are // currently needed for splitting in the `inline::try_append_*` functions. @@ -633,7 +633,7 @@ impl UnscannedTextFragmentInfo { } /// A fragment that represents a table column. -#[derive(Copy, Clone)] +#[derive(Clone, Copy)] pub struct TableColumnFragmentInfo { /// the number of columns a <col> element should span pub span: u32, @@ -3049,7 +3049,7 @@ pub trait FragmentBorderBoxIterator { /// The coordinate system used in `stacking_relative_border_box()`. See the documentation of that /// method for details. -#[derive(Clone, PartialEq, Debug)] +#[derive(Clone, Debug, PartialEq)] pub enum CoordinateSystem { /// The border box returned is relative to the fragment's parent stacking context. Parent, @@ -3094,7 +3094,7 @@ impl<'a> InlineStyleIterator<'a> { } } -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub enum WhitespaceStrippingResult { RetainFragment, FragmentContainedOnlyBidiControlCharacters, @@ -3116,7 +3116,7 @@ impl WhitespaceStrippingResult { /// The overflow area. We need two different notions of overflow: paint overflow and scrollable /// overflow. -#[derive(Copy, Clone, Debug)] +#[derive(Clone, Copy, Debug)] pub struct Overflow { pub scroll: Rect<Au>, pub paint: Rect<Au>, @@ -3163,7 +3163,7 @@ bitflags! { /// Specified distances from the margin edge of a block to its content in the inline direction. /// These are returned by `guess_inline_content_edge_offsets()` and are used in the float placement /// speculation logic. -#[derive(Copy, Clone, Debug)] +#[derive(Clone, Copy, Debug)] pub struct SpeculatedInlineContentEdgeOffsets { pub start: Au, pub end: Au, |