mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibWeb: Port CanvasRenderingContext2D from DeprecatedString to String
This commit is contained in:
parent
da1f137967
commit
d312fdc2d3
8 changed files with 29 additions and 29 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
font_style_value.font_families()->to_string());
|
||||
}
|
||||
|
||||
void set_font(DeprecatedString const& font)
|
||||
void set_font(StringView font)
|
||||
{
|
||||
// The font IDL attribute, on setting, must be parsed as a CSS <'font'> value (but without supporting property-independent style sheet syntax like 'inherit'),
|
||||
// and the resulting font must be assigned to the context, with the 'line-height' component forced to 'normal', with the 'font-size' component converted to CSS pixels,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue