Bug 1695139 - Remove a warning that nobody is looking into. r=tnikkel

This can happen on regular content (I see it when loading google.com on
a debug build for example). Given there's no action to take it seems
only noise atm. No strong opinion into whether it's better to ifdef the
code or just remove it.

Differential Revision: https://phabricator.services.mozilla.com/D144415
This commit is contained in:
Emilio Cobos Álvarez 2022-04-22 10:57:02 +00:00
Родитель d3deba7a92
Коммит 9cdc416fdd
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -7200,12 +7200,12 @@ nsRect ScrollFrameHelper::GetScrolledRect() const {
nsRect result = GetUnsnappedScrolledRectInternal(
mScrolledFrame->ScrollableOverflowRect(), mScrollPort.Size());
if (result.width < mScrollPort.width) {
NS_WARNING("Scrolled rect smaller than scrollport?");
}
if (result.height < mScrollPort.height) {
#if 0
// This happens often enough.
if (result.width < mScrollPort.width || result.height < mScrollPort.height) {
NS_WARNING("Scrolled rect smaller than scrollport?");
}
#endif
// Expand / contract the result by up to half a layer pixel so that scrolling
// to the right / bottom edge does not change the layer pixel alignment of