Bug 1287785 - avoid copying ScrollMetadata values in RenderLayers; r=botond

Using `auto' here means that we're copying each ScrollMetadata value as
we examine it.  Using `auto&' here means that we don't copy, which is
probably the intended behavior.
This commit is contained in:
Nathan Froyd 2016-07-21 16:45:24 -04:00
parent 53d0cc13d6
commit 4efebf6d76

View File

@ -599,7 +599,7 @@ RenderLayers(ContainerT* aContainer,
}
if (gfxPrefs::LayersDrawFPS()) {
for (auto metadata : layer->GetAllScrollMetadata()) {
for (const auto& metadata : layer->GetAllScrollMetadata()) {
if (metadata.IsApzForceDisabled()) {
aManager->DisabledApzWarning();
break;