/* * Copyright (c) 2024, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Web::Painting { void DrawGlyphRun::translate_by(Gfx::IntPoint const& offset) { rect.translate_by(offset); translation.translate_by(offset.to_type()); } Gfx::IntRect PaintOuterBoxShadow::bounding_rect() const { return get_outer_box_shadow_bounding_rect(outer_box_shadow_params); } void PaintOuterBoxShadow::translate_by(Gfx::IntPoint const& offset) { outer_box_shadow_params.device_content_rect.translate_by(offset.to_type()); } void PaintInnerBoxShadow::translate_by(Gfx::IntPoint const& offset) { outer_box_shadow_params.device_content_rect.translate_by(offset.to_type()); } }