Bug 1470504 - Remove the assertion in ScrollMetadata::SetUsesContainerScrolling(). r=kats

The assertion is not serving much purpose. Now that container scrolling is
a Live pref, checking it on the compositor side is racy if the pref is
flipped, and on the content side it's clear from the code that it will
only be set to true if the pref is turned on.

Differential Revision: https://phabricator.services.mozilla.com/D7339
This commit is contained in:
Botond Ballo
2018-09-26 19:17:54 -04:00
parent 9ae9c785e5
commit 6cc7643f9c

View File

@@ -80,7 +80,6 @@ FrameMetrics::KeepLayoutViewportEnclosingVisualViewport(
void
ScrollMetadata::SetUsesContainerScrolling(bool aValue) {
MOZ_ASSERT_IF(aValue, gfxPrefs::LayoutUseContainersForRootFrames());
mUsesContainerScrolling = aValue;
}