Bug 1331509 - Always return the correct APZ state, since we should have it. r?dvander
MozReview-Commit-ID: CrLri2Qucj0
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -422,20 +422,20 @@ TabChild::TabChild(nsIContentChild* aMan
for (uint32_t idx = 0; idx < NUMBER_OF_AUDIO_CHANNELS; idx++) {
mAudioChannelsActive.AppendElement(false);
}
}
bool
TabChild::AsyncPanZoomEnabled() const
{
- // If we have received the CompositorOptions we can answer definitively. If
- // not, return a best guess based on gfxPlaform values.
- return mCompositorOptions ? mCompositorOptions->UseAPZ()
- : gfxPlatform::AsyncPanZoomEnabled();
+ // By the time anybody calls this, we must have had InitRenderingState called
+ // already, and so mCompositorOptions should be populated.
+ MOZ_RELEASE_ASSERT(mCompositorOptions);
+ return mCompositorOptions->UseAPZ();
}
NS_IMETHODIMP
TabChild::Observe(nsISupports *aSubject,
const char *aTopic,
const char16_t *aData)
{
if (!strcmp(aTopic, BEFORE_FIRST_PAINT)) {