mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
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:
parent
53d0cc13d6
commit
4efebf6d76
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user