Index: sdk/lib/html/html_common/conversions.dart |
diff --git a/sdk/lib/html/html_common/conversions.dart b/sdk/lib/html/html_common/conversions.dart |
index 0dca4d3f0814a4636009c64959af75f194506212..9adc5d673e15f1d5ce9f919d549248dede1102dc 100644 |
--- a/sdk/lib/html/html_common/conversions.dart |
+++ b/sdk/lib/html/html_common/conversions.dart |
@@ -266,7 +266,7 @@ abstract class _AcceptStructuredClone { |
// Conversions for ContextAttributes. |
// |
// On Firefox, the returned ContextAttributes is a plain object. |
-class _TypedContextAttributes implements gl.ContextAttributes { |
+class _TypedContextAttributes { |
bool alpha; |
bool antialias; |
bool depth; |
@@ -280,12 +280,7 @@ class _TypedContextAttributes implements gl.ContextAttributes { |
this.preserveDrawingBuffer, this.stencil); |
} |
-gl.ContextAttributes convertNativeToDart_ContextAttributes( |
- nativeContextAttributes) { |
- if (nativeContextAttributes is gl.ContextAttributes) { |
- return nativeContextAttributes; |
- } |
- |
+convertNativeToDart_ContextAttributes(nativeContextAttributes) { |
// On Firefox the above test fails because ContextAttributes is a plain |
// object so we create a _TypedContextAttributes. |