mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
LibWeb: Rename some variables to avoid shadowing
This commit is contained in:
parent
8dfeb67f8c
commit
045aa8530c
1 changed files with 5 additions and 5 deletions
|
@ -569,14 +569,14 @@ bool EventHandler::handle_doubleclick(Gfx::IntPoint position, unsigned button, u
|
||||||
|
|
||||||
if (button == GUI::MouseButton::Primary) {
|
if (button == GUI::MouseButton::Primary) {
|
||||||
if (auto result = paint_root()->hit_test(position.to_type<float>(), Painting::HitTestType::TextCursor); result.has_value()) {
|
if (auto result = paint_root()->hit_test(position.to_type<float>(), Painting::HitTestType::TextCursor); result.has_value()) {
|
||||||
auto paintable = result->paintable;
|
auto hit_paintable = result->paintable;
|
||||||
if (!paintable->dom_node())
|
if (!hit_paintable->dom_node())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
auto const& layout_node = paintable->layout_node();
|
auto const& hit_layout_node = hit_paintable->layout_node();
|
||||||
if (!layout_node.is_text_node())
|
if (!hit_layout_node.is_text_node())
|
||||||
return true;
|
return true;
|
||||||
auto const& text_for_rendering = verify_cast<Layout::TextNode>(layout_node).text_for_rendering();
|
auto const& text_for_rendering = verify_cast<Layout::TextNode>(hit_layout_node).text_for_rendering();
|
||||||
|
|
||||||
int first_word_break_before = [&] {
|
int first_word_break_before = [&] {
|
||||||
// Start from one before the index position to prevent selecting only spaces between words, caused by the addition below.
|
// Start from one before the index position to prevent selecting only spaces between words, caused by the addition below.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue