From ad4b9aab4524fb6fdce40b33b729e313e7d6906b Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 12 Aug 2016 15:24:56 -0700 Subject: [PATCH] Rebuild the writing_mode with cached style reuse Fixes #11818 --- components/style/properties/properties.mako.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 1680f30fdd91..5e908f17d9a2 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1716,6 +1716,9 @@ fn cascade_with_cached_declarations( 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 }