mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move paintWorklet from "Window" to "CSS" according to new specification
Relevant discussion: https://github.com/w3c/css-houdini-drafts/issues/410
This commit is contained in:
parent
9e1479bbdd
commit
c7e3def9b2
7 changed files with 21 additions and 14 deletions
|
@ -6,8 +6,10 @@ use cssparser::{Parser, ParserInput, serialize_identifier};
|
|||
use dom::bindings::codegen::Bindings::WindowBinding::WindowBinding::WindowMethods;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::reflector::Reflector;
|
||||
use dom::bindings::root::DomRoot;
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::window::Window;
|
||||
use dom::worklet::Worklet;
|
||||
use dom_struct::dom_struct;
|
||||
use style::context::QuirksMode;
|
||||
use style::parser::ParserContext;
|
||||
|
@ -63,4 +65,9 @@ impl CSS {
|
|||
false
|
||||
}
|
||||
}
|
||||
|
||||
/// <https://drafts.css-houdini.org/css-paint-api-1/#paint-worklet>
|
||||
pub fn PaintWorklet(win: &Window) -> DomRoot<Worklet> {
|
||||
win.paint_worklet()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue