From 9c66b07b6728626b8bdddf24313c96579a7ad4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 2 Feb 2018 11:04:05 +0100 Subject: [PATCH] style: Make insertion of @font-face rules not necessarily restyle the whole document. Bug: 1435214 Reviewed-by: xidorn MozReview-Commit-ID: 5ewKiShUHNi --- components/style/invalidation/stylesheets.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/style/invalidation/stylesheets.rs b/components/style/invalidation/stylesheets.rs index 08c30c54201..0747bdaa6b1 100644 --- a/components/style/invalidation/stylesheets.rs +++ b/components/style/invalidation/stylesheets.rs @@ -417,9 +417,13 @@ impl StylesheetInvalidationSet { // Do nothing, relevant nested rules are visited as part of the // iteration. } - FontFace(..) | - CounterStyle(..) | + FontFace(..) => { + // Do nothing, @font-face doesn't affect computed style + // information. We'll restyle when the font face loads, if + // needed. + } Keyframes(..) | + CounterStyle(..) | Page(..) | Viewport(..) | FontFeatureValues(..) => {