style: Minor cleanup of ServoStyleSet.

Removing unused arguments and so on.

The origin can always be inferred from the stylesheet so it wasn't being used.

Differential Revision: https://phabricator.services.mozilla.com/D64150
This commit is contained in:
Emilio Cobos Álvarez 2020-02-27 01:46:10 +00:00
parent 225e0000f0
commit 3460f71205

View file

@ -294,7 +294,9 @@ where
// Removing sheets makes us tear down the whole cascade and invalidation
// data, but only if the sheet has been involved in at least one flush.
// Checking whether the sheet has been committed allows us to avoid
// rebuilding the world when sites quickly append and remove a stylesheet.
// rebuilding the world when sites quickly append and remove a
// stylesheet.
//
// See bug 1434756.
if sheet.committed {
self.set_data_validity_at_least(DataValidity::FullyInvalid);