Skip to content

Commit 81cb0ba

Browse files
committed
Merge pull request w3c#214 from dholbert/patch-2
s/scratch bitmap/output bitmap/ to fix broken link
2 parents 536947a + 1eeb1f8 commit 81cb0ba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

css-paint-api/Overview.bs

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ urlPrefix: https://heycam.github.io/webidl/; type: dfn;
2424
url: throw; text: thrown
2525
urlPrefix: https://html.spec.whatwg.org/multipage/scripting.html; type: dfn;
2626
text: reset the rendering context to its default state
27-
text: scratch bitmap
27+
text: output bitmap
2828
text: set bitmap dimensions
2929
url: concept-canvas-alpha; text: alpha
3030
urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn;
@@ -258,11 +258,11 @@ Note: The {{PaintRenderingContext2D}} implements a subset of the {{CanvasRenderi
258258
Specifically it doesn't implement the {{CanvasHitRegion}}, {{CanvasImageData}},
259259
{{CanvasUserInterface}}, {{CanvasText}} or {{CanvasTextDrawingStyles}} APIs.
260260

261-
A {{PaintRenderingContext2D}} object has a <a>scratch bitmap</a>. This is initialised when the
262-
object is created. The size of the <a>scratch bitmap</a> is the size of the fragment it is
261+
A {{PaintRenderingContext2D}} object has a <a>output bitmap</a>. This is initialised when the
262+
object is created. The size of the <a>output bitmap</a> is the size of the fragment it is
263263
rendering.
264264

265-
The size of the <a>scratch bitmap</a> does not necessarily represent the size of the actual bitmap
265+
The size of the <a>output bitmap</a> does not necessarily represent the size of the actual bitmap
266266
that the user agent will use internally or during rendering. For example, if the visual viewport is
267267
zoomed the user agent may internally use bitmaps which correspond to the number of device pixels in
268268
the coordinate space, so that the resulting rendering is of high quality.
@@ -271,19 +271,19 @@ The {{PaintRenderingContext2D}} object should have its <a>alpha</a> flag set to
271271
rendering context is initially fully transparent.
272272

273273
Additionally the user agent may record the sequence of drawing operations which have been applied to
274-
the <a>scratch bitmap</a> such that the user agent can subsequently draw onto a device bitmap at the
275-
correct resolution. This also allows user agents to re-use the same output of the <a>scratch
274+
the <a>output bitmap</a> such that the user agent can subsequently draw onto a device bitmap at the
275+
correct resolution. This also allows user agents to re-use the same output of the <a>output
276276
bitmap</a> repeatably while the visual viewport is being zoomed for example.
277277

278278
When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for a given |width|,
279279
|height| it <em>must</em> run the following steps:
280280
1. Create a new {{PaintRenderingContext2D}}.
281-
2. <a>Set bitmap dimensions</a> for the context's <a>scratch bitmap</a> to |width| and |height|.
281+
2. <a>Set bitmap dimensions</a> for the context's <a>output bitmap</a> to |width| and |height|.
282282
3. Return the new {{PaintRenderingContext2D}}.
283283

284284
Note: The initial state of the rendering context is set inside the <a>set bitmap dimensions</a>
285285
algorithm, as it invokes <a>reset the rendering context to its default state</a> and clears the
286-
<a>scratch bitmap</a>.
286+
<a>output bitmap</a>.
287287

288288
Drawing an image {#drawing-an-image}
289289
====================================

0 commit comments

Comments
 (0)