mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-17 15:25:35 +00:00
Add a debug-menu toggle for caret hit testing at the mouse position. Paint the insertion rect and log the result so selection bugs can be inspected without temporary probes. Request frames and repaint invalidation when the overlay state changes. Also repaint when the caret rect moves within the same text node.
23 lines
496 B
C++
23 lines
496 B
C++
/*
|
|
* Copyright (c) 2025, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Optional.h>
|
|
#include <LibGfx/Rect.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
struct PaintConfig {
|
|
bool paint_overlay { false };
|
|
bool should_show_line_box_borders { false };
|
|
bool should_show_caret_hit_test_debug_overlay { false };
|
|
Optional<Gfx::IntRect> canvas_fill_rect {};
|
|
|
|
bool operator==(PaintConfig const& other) const = default;
|
|
};
|
|
|
|
}
|