From a8ac5f288e4c0001f19703a3362635da2b1c539f Mon Sep 17 00:00:00 2001 From: nainar Date: Fri, 16 Feb 2018 10:39:15 +1100 Subject: [PATCH] Remove StylePropertyMap.update Fixes #656 --- css-typed-om/Overview.bs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 2d828990..77850b38 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -241,13 +241,10 @@ interface StylePropertyMapReadOnly { stringifier; }; -callback UpdateFunction = CSSStyleValue (CSSStyleValue oldValue); - [Exposed=Window] interface StylePropertyMap : StylePropertyMapReadOnly { void set(DOMString property, (CSSStyleValue or DOMString)... values); void append(DOMString property, (CSSStyleValue or DOMString)... values); - void update(DOMString property, UpdateFunction updateFunction); void delete(DOMString property); void clear(); }; @@ -439,22 +436,6 @@ probably in an appendix. 8. [=list/Append=] the entries of |temp values| to |props|[|property|]. -
- The update(|property|, |updateFn|) method, - when called on a {{StylePropertyMap}} |this|, - must perform the following steps: - - 1. Let |old value| be the result of calling |this|.get(|property|) - (using the original value of {{StylePropertyMap/get()}}). - - 2. Let |new value| be the result of [=invoking=] |updateFn| with |old value|. - - 3. Call |this|.set(|property|, |new value|) - (using the original value of {{StylePropertyMap/set()}}). -
- -Issue(645): Do we need an updateAll() method that gets and sets a list? -
The delete(|property|) method, when called on a {{StylePropertyMap}} |this|,