@@ -24,7 +24,7 @@ urlPrefix: https://heycam.github.io/webidl/; type: dfn;
2424 url: throw; text: thrown
2525urlPrefix: 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
3030urlPrefix: 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
263263rendering.
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
266266that the user agent will use internally or during rendering. For example, if the visual viewport is
267267zoomed the user agent may internally use bitmaps which correspond to the number of device pixels in
268268the 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
271271rendering context is initially fully transparent.
272272
273273Additionally 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
276276bitmap</a> repeatably while the visual viewport is being zoomed for example.
277277
278278When 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
284284Note: 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
288288Drawing an image {#drawing-an-image}
289289====================================
0 commit comments