mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Assert that only servo passes in UA sheets explicitly.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
bf45a20760
commit
570da3b512
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue