mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibWeb+WebContent: Delete unused "has focus" flag from paint config
This commit is contained in:
parent
418409aa6f
commit
b73525ba0e
Notes:
github-actions[bot]
2025-07-04 14:14:20 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: b73525ba0e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5259
Reviewed-by: https://github.com/gmta ✅
7 changed files with 0 additions and 11 deletions
|
@ -58,7 +58,6 @@ void NavigableContainerViewportPaintable::paint(PaintContext& context, PaintPhas
|
|||
DOM::Document::PaintConfig paint_config;
|
||||
paint_config.paint_overlay = context.should_paint_overlay();
|
||||
paint_config.should_show_line_box_borders = context.should_show_line_box_borders();
|
||||
paint_config.has_focus = context.has_focus();
|
||||
auto display_list = const_cast<DOM::Document*>(hosted_document)->record_display_list(paint_config);
|
||||
auto scroll_state_snapshot = hosted_document->paintable()->scroll_state().snapshot();
|
||||
context.display_list_recorder().paint_nested_display_list(display_list, move(scroll_state_snapshot), context.enclosing_device_rect(absolute_rect).to_type<int>());
|
||||
|
|
|
@ -32,9 +32,6 @@ public:
|
|||
void set_device_viewport_rect(DevicePixelRect const& rect) { m_device_viewport_rect = rect; }
|
||||
CSSPixelRect css_viewport_rect() const;
|
||||
|
||||
bool has_focus() const { return m_focus; }
|
||||
void set_has_focus(bool focus) { m_focus = focus; }
|
||||
|
||||
void set_svg_transform(Gfx::AffineTransform transform)
|
||||
{
|
||||
m_svg_transform = transform;
|
||||
|
@ -75,7 +72,6 @@ public:
|
|||
clone.m_device_viewport_rect = m_device_viewport_rect;
|
||||
clone.m_should_show_line_box_borders = m_should_show_line_box_borders;
|
||||
clone.m_should_paint_overlay = m_should_paint_overlay;
|
||||
clone.m_focus = m_focus;
|
||||
return clone;
|
||||
}
|
||||
|
||||
|
@ -90,7 +86,6 @@ private:
|
|||
DevicePixelRect m_device_viewport_rect;
|
||||
bool m_should_show_line_box_borders { false };
|
||||
bool m_should_paint_overlay { true };
|
||||
bool m_focus { false };
|
||||
bool m_draw_svg_geometry_for_clip_path { false };
|
||||
Gfx::AffineTransform m_svg_transform;
|
||||
u64 m_paint_generation_id { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue