1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

LibWeb: Disable unused error on temporarily unused variable from spec

This commit is contained in:
FrHun 2022-06-16 18:07:37 +02:00 committed by Sam Atkins
parent a0ffdeb58a
commit 1b4ab8626b

View file

@ -660,7 +660,7 @@ CanvasRenderingContext2D::PreparedText CanvasRenderingContext2D::prepare_text(St
// 7.8. If textBaseline is ideographic: Let the anchor point's vertical position be the ideographic-under baseline of the first available font of the inline box.
// 7.9. If textBaseline is bottom: Let the anchor point's vertical position be the bottom of the em box of the first available font of the inline box.
// FIXME: Once we have CanvasTextDrawingStyles, handle the alignment and baseline.
Gfx::IntPoint anchor { 0, 0 };
[[maybe_unused]] Gfx::IntPoint anchor { 0, 0 };
auto physical_alignment = Gfx::TextAlignment::CenterLeft;
// 8. Let result be an array constructed by iterating over each glyph in the inline box from left to right (if any), adding to the array, for each glyph, the shape of the glyph as it is in the inline box, positioned on a coordinate space using CSS pixels with its origin is at the anchor point.