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
// 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(..) => {