mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1171731 - Ignore elements with 0 font size in cluster detection. r=kats
This commit is contained in:
parent
0f2a5d6e98
commit
767494436e
@ -417,7 +417,8 @@ IsElementClickableAndReadable(nsIFrame* aFrame, WidgetGUIEvent* aEvent, const Ev
|
|||||||
nsLayoutUtils::GetFontMetricsForFrame(aFrame, getter_AddRefs(fm),
|
nsLayoutUtils::GetFontMetricsForFrame(aFrame, getter_AddRefs(fm),
|
||||||
nsLayoutUtils::FontSizeInflationFor(aFrame));
|
nsLayoutUtils::FontSizeInflationFor(aFrame));
|
||||||
if (fm) {
|
if (fm) {
|
||||||
if ((pc->AppUnitsToGfxUnits(fm->EmHeight()) * cumulativeResolution) < limitReadableSize) {
|
if ((fm->EmHeight() > 0) && // See bug 1171731
|
||||||
|
(pc->AppUnitsToGfxUnits(fm->EmHeight()) * cumulativeResolution) < limitReadableSize) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user