Rebuild the writing_mode with cached style reuse

Fixes #11818
This commit is contained in:
Michael Howell 2016-08-12 15:24:56 -07:00
parent a22913569c
commit ad4b9aab45

View file

@ -1716,6 +1716,9 @@ fn cascade_with_cached_declarations(
context.mutate_style().mutate_font().compute_font_hash(); context.mutate_style().mutate_font().compute_font_hash();
} }
let mode = get_writing_mode(context.style.get_inheritedbox());
context.style.set_writing_mode(mode);
context.style context.style
} }