mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Handle anonymous style in end_inline_formatting_context
This commit is contained in:
parent
9cef3eee65
commit
0c156c60c2
2 changed files with 20 additions and 16 deletions
|
@ -274,7 +274,7 @@ impl Drop for BoxSlot<'_> {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) trait NodeExt<'dom>: 'dom + Copy + Send + Sync {
|
||||
pub(crate) trait NodeExt<'dom>: 'dom + Copy + LayoutNode + Send + Sync {
|
||||
fn is_element(self) -> bool;
|
||||
fn as_text(self) -> Option<String>;
|
||||
fn first_child(self) -> Option<Self>;
|
||||
|
@ -291,7 +291,7 @@ pub(crate) trait NodeExt<'dom>: 'dom + Copy + Send + Sync {
|
|||
|
||||
impl<'dom, T> NodeExt<'dom> for T
|
||||
where
|
||||
T: 'dom + LayoutNode + Send + Sync,
|
||||
T: 'dom + Copy + LayoutNode + Send + Sync,
|
||||
{
|
||||
fn is_element(self) -> bool {
|
||||
self.to_threadsafe().as_element().is_some()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue