浏览代码

LibWeb: Add FIXME for viewBox scaling to SVGTextBox

MacDue 1 年之前
父节点
当前提交
f84abbe1f9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibWeb/Layout/SVGTextBox.cpp

+ 1 - 0
Userland/Libraries/LibWeb/Layout/SVGTextBox.cpp

@@ -25,6 +25,7 @@ CSSPixelPoint SVGTextBox::viewbox_origin() const
 
 Optional<Gfx::AffineTransform> SVGTextBox::layout_transform() const
 {
+    // FIXME: Since text layout boxes are currently 0x0 it is not possible handle viewBox scaling here.
     auto& geometry_element = dom_node();
     auto transform = geometry_element.get_transform();
     auto* svg_box = geometry_element.first_ancestor_of_type<SVG::SVGSVGElement>();