Fixed layout flow tree JSON serialization

This commit is contained in:
Shing Lyu 2016-08-19 15:29:25 +08:00
parent 17df3c276b
commit a07be4c850
2 changed files with 3 additions and 3 deletions

View file

@ -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))