From 50e4bb5d0c674ddf15fd90cb0a3101bd02f340f3 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Wed, 12 Apr 2017 09:57:40 +0800 Subject: [PATCH] stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden. --- ports/geckolib/glue.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index b4fcbc0a097..9999dbff74d 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -1654,7 +1654,8 @@ pub extern "C" fn Servo_ResolveStyle(element: RawGeckoElementBorrowed, }; if !valid_styles { - warn!("Resolving style on element without current styles with lazy computation forbidden."); + debug_assert!(false, "Resolving style on element without current styles with lazy \ + computation forbidden."); let per_doc_data = PerDocumentStyleData::from_ffi(raw_data).borrow(); return per_doc_data.default_computed_values().clone().into_strong(); }