mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Factor out CanvasSettings mixin into separate file
This refactors this mixin, that was introduced in #4506 to be the same as all other mixins, so that it can be used for #3788
This commit is contained in:
parent
47da627653
commit
cee874caaf
Notes:
github-actions[bot]
2025-06-17 22:55:15 +00:00
Author: https://github.com/Totto16
Commit: cee874caaf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4726
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/gmta
4 changed files with 43 additions and 15 deletions
|
@ -10,15 +10,20 @@
|
|||
#import <HTML/Canvas/CanvasPathDrawingStyles.idl>
|
||||
#import <HTML/Canvas/CanvasTextDrawingStyles.idl>
|
||||
#import <HTML/Canvas/CanvasRect.idl>
|
||||
#import <HTML/Canvas/CanvasSettings.idl>
|
||||
#import <HTML/Canvas/CanvasShadowStyles.idl>
|
||||
#import <HTML/Canvas/CanvasState.idl>
|
||||
#import <HTML/Canvas/CanvasText.idl>
|
||||
#import <HTML/Canvas/CanvasTransform.idl>
|
||||
#import <HTML/Canvas/CanvasUserInterface.idl>
|
||||
|
||||
// FIXME: This should be in CanvasSettings.idl but then it is not exported
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#predefinedcolorspace
|
||||
enum PredefinedColorSpace { "srgb", "display-p3" };
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvascolortype
|
||||
enum CanvasColorType { "unorm8", "float16" };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvasrenderingcontext2dsettings
|
||||
dictionary CanvasRenderingContext2DSettings {
|
||||
boolean alpha = true;
|
||||
boolean desynchronized = false;
|
||||
|
@ -60,9 +65,3 @@ CanvasRenderingContext2D includes CanvasImageData;
|
|||
CanvasRenderingContext2D includes CanvasPathDrawingStyles;
|
||||
CanvasRenderingContext2D includes CanvasTextDrawingStyles;
|
||||
CanvasRenderingContext2D includes CanvasPath;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvassettings
|
||||
interface mixin CanvasSettings {
|
||||
// settings
|
||||
CanvasRenderingContext2DSettings getContextAttributes();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue