mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #13056 - KiChjang:transition-event, r=mbrubeck
Implement transition event and infrastructure Fixes #10245. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13056) <!-- Reviewable:end -->
This commit is contained in:
commit
cd2f950de3
23 changed files with 199 additions and 61 deletions
|
@ -451,6 +451,14 @@ impl<T: Reflectable> LayoutJS<T> {
|
|||
debug_assert!(thread_state::get().is_layout());
|
||||
*self.ptr
|
||||
}
|
||||
|
||||
/// Returns a reference to the interior of this JS object. This method is
|
||||
/// safe to call because it originates from the layout thread, and it cannot
|
||||
/// mutate DOM nodes.
|
||||
pub fn get_for_script(&self) -> &T {
|
||||
debug_assert!(thread_state::get().is_script());
|
||||
unsafe { &**self.ptr }
|
||||
}
|
||||
}
|
||||
|
||||
/// Get a reference out of a rooted value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue