mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fixed layout flow tree JSON serialization
This commit is contained in:
parent
17df3c276b
commit
a07be4c850
2 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ pub struct Fragment {
|
|||
|
||||
impl Encodable for Fragment {
|
||||
fn encode<S: Encoder>(&self, e: &mut S) -> Result<(), S::Error> {
|
||||
e.emit_struct("fragment", 0, |e| {
|
||||
e.emit_struct("fragment", 3, |e| {
|
||||
try!(e.emit_struct_field("id", 0, |e| self.debug_id.encode(e)));
|
||||
try!(e.emit_struct_field("border_box", 1, |e| self.border_box.encode(e)));
|
||||
e.emit_struct_field("margin", 2, |e| self.margin.encode(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue