mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Only allow UA widgets as children of media elements
Do not allow pseudo-elements for replaced elements
This commit is contained in:
parent
618f528344
commit
e344203c11
6 changed files with 16 additions and 11 deletions
|
@ -4581,6 +4581,7 @@ impl DocumentMethods for Document {
|
|||
self.exit_fullscreen()
|
||||
}
|
||||
|
||||
// check-tidy: no specs after this line
|
||||
// Servo only API to get an instance of the controls of a specific
|
||||
// media element matching the given id.
|
||||
fn ServoGetMediaControls(&self, id: DOMString) -> Fallible<DomRoot<ShadowRoot>> {
|
||||
|
|
|
@ -46,8 +46,6 @@ pub struct ShadowRoot {
|
|||
author_styles: DomRefCell<AuthorStyles<StyleSheetInDocument>>,
|
||||
stylesheet_list: MutNullableDom<StyleSheetList>,
|
||||
window: Dom<Window>,
|
||||
/// Whether this ShadowRoot hosts a User Agent widget.
|
||||
is_widget: IsUserAgentWidget,
|
||||
}
|
||||
|
||||
impl ShadowRoot {
|
||||
|
@ -72,7 +70,6 @@ impl ShadowRoot {
|
|||
author_styles: DomRefCell::new(AuthorStyles::new()),
|
||||
stylesheet_list: MutNullableDom::new(None),
|
||||
window: Dom::from_ref(document.window()),
|
||||
is_widget,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,10 +167,6 @@ impl ShadowRoot {
|
|||
root,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn is_user_agent_widget(&self) -> bool {
|
||||
self.is_widget == IsUserAgentWidget::Yes
|
||||
}
|
||||
}
|
||||
|
||||
impl ShadowRootMethods for ShadowRoot {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue