mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 10:14:58 +00:00
LibWeb: Port CanvasGradient interface from DeprecatedString to String
This commit is contained in:
parent
2c69f273a0
commit
c4f12feadc
3 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ void CanvasGradient::initialize(JS::Realm& realm)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop
|
||||
WebIDL::ExceptionOr<void> CanvasGradient::add_color_stop(double offset, DeprecatedString const& color)
|
||||
WebIDL::ExceptionOr<void> CanvasGradient::add_color_stop(double offset, StringView color)
|
||||
{
|
||||
// 1. If the offset is less than 0 or greater than 1, then throw an "IndexSizeError" DOMException.
|
||||
if (offset < 0 || offset > 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue