dymokomi/luce-browser-engine
Source of release 0.6.1
0.6.1 / src / web / layout / svg_graphics_box.lucb
#==============================================================================================
#
# svg_graphics_box - Layout::SVGGraphicsBox: the box of an SVG graphics element
#
# DESCRIPTION:
# Port of LibWeb/Layout/SVGGraphicsBox.cpp (lines 1-25) and SVGGraphicsBox.h: the
# constructor, the graphics element and the SVGGraphicsPaintable.
#
# Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
# SPDX-License-Identifier: BSD-2-Clause
#
#==============================================================================================
## Ported from Libraries/LibWeb/Layout/SVGGraphicsBox.cpp:15 Web::Layout::SVGGraphicsBox::SVGGraphicsBox.
pub func layout_svg_graphics_box_construct(this: LayoutSvgGraphicsBox*, document: DomDocument*, element: SvgGraphicsElement*, style: CssComputedProperties*):
layout_svg_box_construct(this.layout_svg_box(), document, element.svg_element(), style)
## Ported from Libraries/LibWeb/Layout/SVGGraphicsBox.h:24 Web::Layout::SVGGraphicsBox::dom_node.
pub func layout_svg_graphics_box_dom_node(this: LayoutSvgGraphicsBox*) -> SvgGraphicsElement*:
return as_svg_graphics_element(layout_svg_box_dom_node(this.layout_svg_box()))
## Ported from Libraries/LibWeb/Layout/SVGGraphicsBox.h:25 Web::Layout::SVGGraphicsBox::dom_node.
pub func layout_svg_graphics_box_dom_node_const(this: LayoutSvgGraphicsBox*) -> SvgGraphicsElement*:
return layout_svg_graphics_box_dom_node(this)
## Ported from Libraries/LibWeb/Layout/SVGGraphicsBox.cpp:20 Web::Layout::SVGGraphicsBox::create_paintable (override).
pub func layout_svg_graphics_box_create_paintable_impl(base: LayoutNode*) -> PaintPaintable*?:
return paint_svg_graphics_paintable_create((LayoutSvgGraphicsBox*)base).paint_paintable()
## Ported from Libraries/LibWeb/Layout/SVGGraphicsBox.h:30 Web::Layout::SVGGraphicsBox::is_svg_graphics_box (override).
pub func layout_svg_graphics_box_is_svg_graphics_box_impl(base: LayoutNode*) -> bool:
_ = base
return true