diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-12-25 07:56:42 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-25 07:56:42 -0600 |
commit | 7aae164fcdb8ab308bfa0806e1123e9b7eb73a7c (patch) | |
tree | e0b53b4fc43489f0fa192cfb1a88b4fc56db7b9b /components/layout/fragment.rs | |
parent | d49cb8a47812c0e8ae25643e5437e212f5cbee16 (diff) | |
parent | 43c94d34457965ae221947a2986a265c428dfff2 (diff) | |
download | servo-7aae164fcdb8ab308bfa0806e1123e9b7eb73a7c.tar.gz servo-7aae164fcdb8ab308bfa0806e1123e9b7eb73a7c.zip |
Auto merge of #19622 - tigercosmos:x2, r=shinglyu
pretty print tree
<!-- Please describe your changes on the following line: -->
```
│ │ │ │ │ │ │ floatspec-out=L 0px R 0px
│ │ │ │ │ │ │ overflow=Overflow { scroll: TypedRect(0px×0px at (0px,0px)), paint: TypedRect(0px×0px at (0px,0px)) }
│ │ │ │ │ │ │ damage=BUBBLE_ISIZES
│ │ │ │ │ │ │ └─ ↑↑ Fragment for block:
│ │ │ │ │ │ │ │ SpecificFragmentInfo::Table(2671) []
│ │ │ │ │ │ │ │ border_box=LogicalRect(H LTR, i0px×b0px, @ (i0px,b0px))
│ │ │ │ │ │ │ │ damage=REPOSITION | STORE_OVERFLOW | BUBBLE_ISIZES | REFLOW_OUT_OF_FLOW | REFLOW
│ │ │ │ ├─ Block(1268a9710)
│ │ │ │ │ sc=StackingContextId(0)
│ │ │ │ │ pos=LogicalRect(H LTR, i720px×b36px, @ (i152px,b2636.883333333333px))
│ │ │ │ │ floatspec-in=L 0px R 0px
│ │ │ │ │ floatspec-out=L 0px R 0px
│ │ │ │ │ overflow=Overflow { scroll: TypedRect(750px×36px at (-15px,0px)), paint: TypedRect(750px×36px at (-15px,0px)) }
│ │ │ │ │ children=1
│ │ │ │ │ damage=BUBBLE_ISIZES
│ │ │ │ │ ├─ ↑↑ Fragment for block:
│ │ │ │ │ │ SpecificFragmentInfo::Generic(2673) []
│ │ │ │ │ │ border_box=LogicalRect(H LTR, i720px×b36px, @ (i0px,b0px))
│ │ │ │ │ │ border_padding=LogicalMargin(H LTR, i:0px..0px b:6px..0px)
│ │ │ │ │ │ damage=REPOSITION | STORE_OVERFLOW
│ │ │ │ │ ├─ Block(128554f10)
│ │ │ │ │ │ sc=StackingContextId(0)
│ │ │ │ │ │ pos=LogicalRect(H LTR, i750px×b30px, @ (i0px,b6px))
│ │ │ │ │ │ floatspec-in=L 0px R 0px
│ │ │ │ │ │ floatspec-out=L 0px R 0px
│ │ │ │ │ │ overflow=Overflow { scroll: TypedRect(750px×30px at (-15px,0px)), paint: TypedRect(750px×30px at (-15px,0px)) }
│ │ │ │ │ │ children=6
│ │ │ │ │ │ damage=BUBBLE_ISIZES
│ │ │ │ │ │ ├─ ↑↑ Fragment for block:
│ │ │ │ │ │ │ SpecificFragmentInfo::Generic(2361) []
│ │ │ │ │ │ │ border_box=LogicalRect(H LTR, i750px×b30px, @ (i-15px,b0px))
│ │ │ │ │ │ │ margin=LogicalMargin(H LTR, i:-15px..-15px b:0px..0px)
│ │ │ │ │ │ │ damage=REPOSITION | STORE_OVERFLOW
│ │ │ │ │ │ ├─ TableWrapperFlow: Block(128555410)
│ │ │ │ │ │ │ sc=StackingContextId(0)
│ │ │ │ │ │ │ pos=LogicalRect(H LTR, i750px×b0px, @ (i-15px,b0px))
│ │ │ │ │ │ │ floatspec-in=L 0px R 0px
│ │ │ │ │ │ │ floatspec-out=L 0px R 0px
│ │ │ │ │ │ │ overflow=Overflow { scroll: TypedRect(0px×0px at (0px,0px)), paint: TypedRect(0px×0px at (0px,0px)) }
│ │ │ │ │ │ │ children=1
│ │ │ │ │ │ │ damage=BUBBLE_ISIZES
```
---
<!-- 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 #12675 (github issue number if applicable).
<!-- Either: -->
- [ ] 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/19622)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r-- | components/layout/fragment.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index b2a627347da..0b78fb86475 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -2958,24 +2958,24 @@ impl Fragment { impl fmt::Debug for Fragment { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let border_padding_string = if !self.border_padding.is_zero() { - format!(" border_padding={:?}", self.border_padding) + format!("\nborder_padding={:?}", self.border_padding) } else { "".to_owned() }; let margin_string = if !self.margin.is_zero() { - format!(" margin={:?}", self.margin) + format!("\nmargin={:?}", self.margin) } else { "".to_owned() }; let damage_string = if self.restyle_damage != RestyleDamage::empty() { - format!(" damage={:?}", self.restyle_damage) + format!("\ndamage={:?}", self.restyle_damage) } else { "".to_owned() }; - write!(f, "{}({}) [{:?}] border_box={:?}{}{}{}", + write!(f, "\n{}({}) [{:?}]\nborder_box={:?}{}{}{}", self.specific.get_type(), self.debug_id, self.specific, |