Skip to content

Commit e015d39

Browse files
committed
[css-paint-api] Remove unregisterPaint
1 parent 62beb3b commit e015d39

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

css-paint-api/Overview.bs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ callback VoidFunction = void ();
7272

7373
partial interface RenderWorkletGlobalScope {
7474
void registerPaint(DOMString name, VoidFunction paintCtor);
75-
void unregisterPaint(DOMString name);
7675
};
7776
</pre>
7877

@@ -112,10 +111,6 @@ Note: In a future version of the spec, the author may be able to set an option t
112111

113112
Issue(w3c/css-houdini-drafts#31): Allow author to specify the intrinsic size.
114113

115-
When the <dfn method for=RenderWorkletGlobalScope>unregisterPaint(<var>name</var>)</dfn> method is called, the user agent <em>must</em> run the following steps:
116-
1. Remove the key-value pair associated with the |name| key in the <b>paint name to input properties map</b> of the associated <a>document</a>.
117-
2. Remove the key-value pair associated with the |name| key in the <b>name to paint instance map</b> of the {{RenderWorkletGlobalScope}}.
118-
119114
Paint Notation {#paint-notation}
120115
================================
121116

@@ -179,7 +174,7 @@ the <a>scratch bitmap</a> such that the user agent can subsequently draw onto a
179174
correct resolution. This also allows user agents to re-use the same output of the <a>scratch
180175
bitmap</a> repeatably while the visual viewport is being zoomed for example.
181176

182-
When the user agent is to <dfn>create a {{PaintRenderingContext2D}} object</dfn> for a given
177+
When the user agent is to <dfn>create a PaintRenderingContext2D object</dfn> for a given
183178
|width|, |height| and |overflowOffset| it <em>must</em> run the following steps:
184179
1. Create a new {{PaintRenderingContext2D}}.
185180
2. <a>Set bitmap dimensions</a> for the context's <a>scratch bitmap</a> to |width| and |height|.
@@ -227,7 +222,7 @@ When the user agent wants to <dfn>draw an image</dfn> of a <<paint()>> for a <va
227222
Note: User agents may have to compute overflow before entering their paint phase in order to determine which fragments to paint (overflow changes what could be seen on the output device).
228223
User agents may opt into running the steps up to this point, to determine overflow, then continuing later to determine the drawn image for the fragments which need painting.
229224

230-
7. Let <var>renderingContext</var> be the result of <a>create a {{PaintRenderingContext2D}} object</a> given:
225+
7. Let <var>renderingContext</var> be the result of <a>create a PaintRenderingContext2D object</a> given:
231226
- "overflowOffset" - The logical offset for the <a>scratch bitmap</a> specified by |overflow|.
232227
- "width" - The width of the |fragment| plus the additional width specified by |overflow|.
233228
- "height" - The height of the |fragment| plus the additional height specified by |overflow|.

0 commit comments

Comments
 (0)