mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix some debug message formatting, and add some more cases to the UA style simulator.
This commit is contained in:
parent
356e4dee21
commit
bd716214e7
2 changed files with 10 additions and 3 deletions
|
@ -159,6 +159,13 @@ impl LayoutTreeBuilder {
|
||||||
~Element(e) => match e.kind {
|
~Element(e) => match e.kind {
|
||||||
~HTMLHeadElement(*) => DisplayNone,
|
~HTMLHeadElement(*) => DisplayNone,
|
||||||
~HTMLScriptElement(*) => DisplayNone,
|
~HTMLScriptElement(*) => DisplayNone,
|
||||||
|
~HTMLParagraphElement(*) => DisplayBlock,
|
||||||
|
~HTMLDivElement(*) => DisplayBlock,
|
||||||
|
~HTMLBodyElement(*) => DisplayBlock,
|
||||||
|
~HTMLHeadingElement(*) => DisplayBlock,
|
||||||
|
~HTMLHtmlElement(*) => DisplayBlock,
|
||||||
|
~HTMLUListElement(*) => DisplayBlock,
|
||||||
|
~HTMLOListElement(*) => DisplayBlock,
|
||||||
_ => resolved
|
_ => resolved
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -358,19 +358,19 @@ impl FlowContext : BoxedDebugMethods {
|
||||||
let repr = match *self {
|
let repr = match *self {
|
||||||
InlineFlow(*) => {
|
InlineFlow(*) => {
|
||||||
let mut s = self.inline().boxes.foldl(~"InlineFlow(children=", |s, box| {
|
let mut s = self.inline().boxes.foldl(~"InlineFlow(children=", |s, box| {
|
||||||
fmt!("%s %?", *s, box.d().id)
|
fmt!("%s b%d", *s, box.d().id)
|
||||||
});
|
});
|
||||||
s += ~")"; s
|
s += ~")"; s
|
||||||
},
|
},
|
||||||
BlockFlow(*) => {
|
BlockFlow(*) => {
|
||||||
match self.block().box {
|
match self.block().box {
|
||||||
Some(box) => fmt!("BlockFlow(box=b%?)", box.d().id),
|
Some(box) => fmt!("BlockFlow(box=b%d)", box.d().id),
|
||||||
None => ~"BlockFlow",
|
None => ~"BlockFlow",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
RootFlow(*) => {
|
RootFlow(*) => {
|
||||||
match self.root().box {
|
match self.root().box {
|
||||||
Some(box) => fmt!("RootFlo(box=b%?)", box.d().id),
|
Some(box) => fmt!("RootFlo(box=b%d)", box.d().id),
|
||||||
None => ~"RootFlow",
|
None => ~"RootFlow",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue