mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix image_dynamic_remove reftest with incremental layout turned out
This also adds some extra debugging infrastructure which I found useful tracking this bug down. A regression in the br reftests is also uncovered by this patch, which I'll work on fixing next. r? @pcwalton
This commit is contained in:
parent
a1efb79cf4
commit
2faf5b270f
16 changed files with 96 additions and 41 deletions
|
@ -584,6 +584,10 @@ impl Fragment {
|
|||
self.debug_id
|
||||
}
|
||||
|
||||
pub fn debug_show(&self) -> String {
|
||||
format!("{:x} {}", self.debug_id(), self.specific.get_type())
|
||||
}
|
||||
|
||||
/// Transforms this fragment into another fragment of the given type, with the given size, preserving all
|
||||
/// the other data.
|
||||
pub fn transform(&self, size: LogicalSize<Au>, specific: SpecificFragmentInfo) -> Fragment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue