From 570da3b51291e3a402fd46bface81227bd9ae3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 23 Aug 2017 14:02:35 +0200 Subject: [PATCH] style: Assert that only servo passes in UA sheets explicitly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Emilio Cobos Álvarez --- components/style/stylist.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/stylist.rs b/components/style/stylist.rs index 6c719169b9c..f096f80733b 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -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;