| Index: tools/dom/src/native_DOMImplementation.dart
|
| diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart
|
| index b2d83d4b950e037c88ff0e3b22dba8bac8b1984c..3ef960a2ae570346ef041ed830065ef463a7d37a 100644
|
| --- a/tools/dom/src/native_DOMImplementation.dart
|
| +++ b/tools/dom/src/native_DOMImplementation.dart
|
| @@ -31,6 +31,18 @@ class _Utils {
|
| return result;
|
| }
|
|
|
| + static int convertCanvasElementGetContextMap(Map map) {
|
| + int result = 0;
|
| + if (map['alpha'] == true) result |= 0x01;
|
| + if (map['depth'] == true) result |= 0x02;
|
| + if (map['stencil'] == true) result |= 0x4;
|
| + if (map['antialias'] == true) result |= 0x08;
|
| + if (map['premultipliedAlpha'] == true) result |= 0x10;
|
| + if (map['preserveDrawingBuffer'] == true) result |= 0x20;
|
| +
|
| + return result;
|
| + }
|
| +
|
| static void populateMap(Map result, List list) {
|
| for (int i = 0; i < list.length; i += 2) {
|
| result[list[i]] = list[i + 1];
|
|
|