mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
layout: script: Fix build.
This commit is contained in:
parent
750c223021
commit
895946bb18
23 changed files with 141 additions and 98 deletions
|
@ -127,6 +127,7 @@ use std::cell::{Cell, Ref, RefMut};
|
|||
use std::collections::{HashMap, HashSet, VecDeque};
|
||||
use std::collections::hash_map::Entry::{Occupied, Vacant};
|
||||
use std::default::Default;
|
||||
use std::fmt;
|
||||
use std::mem;
|
||||
use std::ptr::NonNull;
|
||||
use std::rc::Rc;
|
||||
|
@ -213,6 +214,12 @@ struct StyleSheetInDocument {
|
|||
owner: Dom<Element>,
|
||||
}
|
||||
|
||||
impl fmt::Debug for StyleSheetInDocument {
|
||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.sheet.fmt(formatter)
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for StyleSheetInDocument {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
Arc::ptr_eq(&self.sheet, &other.sheet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue