+# if MOZ_VERSION_MAJOR > 1 \
+ || (MOZ_VERSION_MAJOR == 1 && MOZ_VERSION_MINOR >= 8)
+ pres_shell->ReconstructStyleData();
+ check(pres_shell->FlushPendingNotifications(Flush_Display));
+# else
+ check(pres_shell->ReconstructStyleData());
+ check(pres_shell->FlushPendingNotifications(true));
+# endif