diff --git a/index.bs b/index.bs index 89ae6e211..fe84345ca 100644 --- a/index.bs +++ b/index.bs @@ -175,6 +175,7 @@ spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/ text: default classic script fetch options; url: webappapis.html#default-classic-script-fetch-options text: default view; url: nav-history-apis.html#dom-document-defaultview text: environment settings object's Realm; url: webappapis.html#environment-settings-object's-realm + text: event loop processing model; url: event-loop-processing-model text: focused area of the document; url: document-sequences.html#focused-area-of-the-document text: getting all used history steps; url:browsing-the-web.html#getting-all-used-history-steps text: handled; url: webappapis.html#concept-error-handled @@ -189,7 +190,6 @@ spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/ text: prompt; url: timers-and-user-prompts.html#dom-prompt text: remove a browsing context; url: browsers.html#bcg-remove text: report an error; url: webappapis.html#report-the-error - text: run the animation frame callbacks; url: imagebitmap-and-animations.html#run-the-animation-frame-callbacks text: same origin domain; url: browsers.html#same-origin-domain text: session history; url: history.html#session-history text: session history entry; url: browsing-the-web.html#session-history-entry @@ -1971,6 +1971,11 @@ implicitly set when the context is created. For browsing contexts with an associated WebDriver [=window handle=] the [=/browsing context id=] must be the same as the [=window handle=]. +Each [=/browsing context=] has an associated list of suspended rendering +ids, which is initially an empty list. It is used to track pending +invocations of [=browsingContext.captureScreenshot=] and +[=browsingContext.print=]. +
To get a browsing context given |context id|: @@ -1985,6 +1990,19 @@ To get a browsing context given |context id|:
+
+To resume suspended renderings for a given |browsing context|. + +1. Let |rendering ids| be |browsing context|'s [=list of suspended rendering ids=]. + +1. For each |rendering id| in |rendering ids|: + + 1. [=Resume=] with "animation frame", |rendering id|, and (). + +1. [=list/Empty=] |rendering ids|. + +
+ #### The browsingContext.Info Type #### {#type-browsingContext-Info} [=local end definition=] @@ -2479,6 +2497,17 @@ To render document to a canvas given |document| and |rect|: +
+To await the next animation frame given |browsing context|: + +1. Let |rendering id| be a new unique opaque string. + +1. [=list/Append=] |rendering id| to |browsing context|'s [=list of suspended rendering ids=]. + +1. [=Await=] with «"animation frame"», and |rendering id|. + +
+
To encode a canvas as Base64 given |canvas| and |format|: @@ -2532,11 +2561,7 @@ The [=remote end steps=] with session and |command parameters| 1. Let |document| be |context|'s [=active document=]. -1. Immediately after the next invocation of the [=run the animation frame - callbacks=] algorithm for |document|: - - Issue: This ought to be integrated into the update rendering algorithm in - some more explicit way. +1. [=Await the next animation frame=] with |context|. 1. Let |origin| be the value of the context field of |command parameters| if present, or "viewport" otherwise. @@ -3323,11 +3348,7 @@ Note: The minimum page size is 1 point, which is (2.54 / 72) cm as per 1. Let |document| be |context|'s [=active document=]. -1. Immediately after the next invocation of the [=run the animation frame - callbacks=] algorithm for |document|: - - Issue: This ought to be integrated into the update rendering algorithm - in some more explicit way. +1. [=Await the next animation frame=] with |context|. 1. Let |pdf data| be the result taking UA-specific steps to generate a paginated representation of |document|, with the CSS [=media type=] set to @@ -9627,6 +9648,17 @@ end: ignore>col, message, and true if the error is [=handled=], or false otherwise. +
+ +The [=event loop processing model=] is modified to insert a step at the end of +the sub-steps labeled [=update the rendering=]: + +
+ +1. For each [=fully active=] Document |doc| in docs run [=resume suspended renderings=] given |doc|'s + [=/browsing context=]. WEBDRIVERBIDI +
## Console ## {#patches-console}