Skip to content

Commit 2a4b620

Browse files
committed
Remove some dead code from LegacyInlineFlowBox::nodeAtPoint
https://bugs.webkit.org/show_bug.cgi?id=228960 Reviewed by Alan Bujtas. * rendering/LegacyInlineFlowBox.cpp: (WebCore::LegacyInlineFlowBox::nodeAtPoint): This hit test quirk got accidentally disabled 7 years ago (in http://trac.webkit.org/changeset/170875/webkit) and this became dead code. No one has complained. Canonical link: https://commits.webkit.org/240401@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 1c91278 commit 2a4b620

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

Source/WebCore/ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2021-08-10 Antti Koivisto <antti@apple.com>
2+
3+
Remove some dead code from LegacyInlineFlowBox::nodeAtPoint
4+
https://bugs.webkit.org/show_bug.cgi?id=228960
5+
6+
Reviewed by Alan Bujtas.
7+
8+
* rendering/LegacyInlineFlowBox.cpp:
9+
(WebCore::LegacyInlineFlowBox::nodeAtPoint):
10+
11+
This hit test quirk got accidentally disabled 7 years ago (in http://trac.webkit.org/changeset/170875/webkit)
12+
and this became dead code. No one has complained.
13+
114
2021-08-10 Ben Nham <nham@apple.com>
215

316
Fix nested resource load tracepoints

Source/WebCore/rendering/LegacyInlineFlowBox.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,17 +1167,6 @@ bool LegacyInlineFlowBox::nodeAtPoint(const HitTestRequest& request, HitTestResu
11671167
return false;
11681168
}
11691169

1170-
// Constrain our hit testing to the line top and bottom if necessary.
1171-
bool noQuirksMode = renderer().document().inNoQuirksMode();
1172-
if (!noQuirksMode && !hasTextChildren() && !(descendantsHaveSameLineHeightAndBaseline() && hasTextDescendants())) {
1173-
LegacyRootInlineBox& rootBox = root();
1174-
LayoutUnit top { isHorizontal() ? y() : x()};
1175-
LayoutUnit logicalHeight { isHorizontal() ? height() : width() };
1176-
LayoutUnit bottom = std::min(rootBox.lineBottom(), top + logicalHeight);
1177-
top = std::max(rootBox.lineTop(), top);
1178-
logicalHeight = bottom - top;
1179-
}
1180-
11811170
// Move x/y to our coordinates.
11821171
FloatRect rect(frameRect());
11831172
flipForWritingMode(rect);

0 commit comments

Comments
 (0)