From d431fd42b36dfa5a67f08d0927bbb1f65e40eca4 Mon Sep 17 00:00:00 2001 From: Christopher Cameron Date: Thu, 9 Jan 2025 12:16:58 -0800 Subject: [PATCH] CanvasRenderingContext2DSettings: follow the spec types The type for willReadFrequently is boolean, not an enum with values of "true", "false", and "undefined". Add WPT tests for this. And for the rest of the attributes. The WPT tests failed for the desynchronized property because, when it was discovered that this feature was never implemented on macOS, it was disabled at compile time, when parsing the input from V8, losing the information required to correctly implement getContextAttributes. Add a temporary workaround for this situation by separately storing the specified desynchronized value. Bug: 388290815 Change-Id: I00e6b6c82a23cdb627a3eba1314ebf3b0f9abf9f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6157723 Reviewed-by: Yi Xu Commit-Queue: ccameron chromium Reviewed-by: Aaron Krajeski Cr-Commit-Position: refs/heads/main@{#1404356} --- .../getContextAttributes.html | 35 ++++++++++++++++--- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/html/canvas/element/manual/context-attributes/getContextAttributes.html b/html/canvas/element/manual/context-attributes/getContextAttributes.html index 47b3d96233acf6..9c988638965735 100644 --- a/html/canvas/element/manual/context-attributes/getContextAttributes.html +++ b/html/canvas/element/manual/context-attributes/getContextAttributes.html @@ -4,42 +4,67 @@