Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(961)

Unified Diff: sdk/lib/html/html_common/conversions.dart

Issue 1727003002: Replace the now missing ContextAttributes with our previously Firefox-only _TypedContextAttributes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9adc5d673e15f1d5ce9f919d549248dede1102dc..de0d423258d971447938882f573cc9e49e86fd09 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 {
+class ContextAttributes {
bool alpha;
bool antialias;
bool depth;
@@ -275,7 +275,7 @@ class _TypedContextAttributes {
bool stencil;
bool failIfMajorPerformanceCaveat;
- _TypedContextAttributes(this.alpha, this.antialias, this.depth,
+ ContextAttributes(this.alpha, this.antialias, this.depth,
this.failIfMajorPerformanceCaveat, this.premultipliedAlpha,
this.preserveDrawingBuffer, this.stencil);
}
@@ -284,7 +284,7 @@ convertNativeToDart_ContextAttributes(nativeContextAttributes) {
// On Firefox the above test fails because ContextAttributes is a plain
// object so we create a _TypedContextAttributes.
- return new _TypedContextAttributes(
+ return new ContextAttributes(
JS('var', '#.alpha', nativeContextAttributes),
JS('var', '#.antialias', nativeContextAttributes),
JS('var', '#.depth', nativeContextAttributes),
« no previous file with comments | « no previous file | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698