mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
geckolib: Add friendly panic message to Servo_HasAuthorSpecifiedRules.
This commit is contained in:
parent
097e36beb1
commit
7cee3ac713
1 changed files with 4 additions and 1 deletions
|
@ -1610,7 +1610,10 @@ pub extern "C" fn Servo_HasAuthorSpecifiedRules(element: RawGeckoElementBorrowed
|
|||
{
|
||||
let element = GeckoElement(element);
|
||||
|
||||
let data = element.borrow_data().unwrap();
|
||||
let data =
|
||||
element.borrow_data()
|
||||
.expect("calling Servo_HasAuthorSpecifiedRules on an unstyled element");
|
||||
|
||||
let primary_style = data.styles.primary();
|
||||
|
||||
let guard = (*GLOBAL_STYLE_DATA).shared_lock.read();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue