mirror of
https://github.com/servo/servo.git
synced 2025-06-17 04:44:28 +00:00
Make all DOM manipulation wait until it's safe to do so (ie. all reflows for the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow.
This commit is contained in:
parent
37787d55d0
commit
d465abdb1c
7 changed files with 49 additions and 10 deletions
|
@ -4020,7 +4020,8 @@ def finalizeHook(descriptor, hookName, context):
|
|||
assert descriptor.nativeIsISupports
|
||||
release = """let val = JS_GetReservedSlot(obj, 0);
|
||||
let _: @mut %s = cast::transmute(RUST_JSVAL_TO_PRIVATE(val));
|
||||
""" % descriptor.concreteType
|
||||
debug!("%s finalize: %%p", this);
|
||||
""" % (descriptor.concreteType, descriptor.concreteType)
|
||||
#return clearWrapper + release
|
||||
return release
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue