зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d3deba7a92
Коммит
9cdc416fdd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче