style: Make insertion of @font-face rules not necessarily restyle the whole document.

Bug: 1435214
Reviewed-by: xidorn
MozReview-Commit-ID: 5ewKiShUHNi
This commit is contained in:
Emilio Cobos Álvarez 2018-02-02 11:04:05 +01:00
parent f2df3052d9
commit 9c66b07b67
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -417,9 +417,13 @@ impl StylesheetInvalidationSet {
// Do nothing, relevant nested rules are visited as part of the // Do nothing, relevant nested rules are visited as part of the
// iteration. // iteration.
} }
FontFace(..) | FontFace(..) => {
CounterStyle(..) | // Do nothing, @font-face doesn't affect computed style
// information. We'll restyle when the font face loads, if
// needed.
}
Keyframes(..) | Keyframes(..) |
CounterStyle(..) |
Page(..) | Page(..) |
Viewport(..) | Viewport(..) |
FontFeatureValues(..) => { FontFeatureValues(..) => {