style: Assert that only servo passes in UA sheets explicitly.

Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-08-23 14:02:35 +02:00
parent bf45a20760
commit 570da3b512
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -119,6 +119,8 @@ impl DocumentCascadeData {
}
if let Some(ua_stylesheets) = ua_stylesheets {
debug_assert!(cfg!(feature = "servo"));
for stylesheet in &ua_stylesheets.user_or_user_agent_stylesheets {
let sheet_origin =
stylesheet.contents(guards.ua_or_user).origin;