зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1645339 - Use range-based for with nsTObserverArray in mobile/android. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D79504
This commit is contained in:
Родитель
8bfe252320
Коммит
3ada66891d
|
@ -91,10 +91,7 @@ void GeckoViewHistory::QueryVisitedStateInContentProcess(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ObservingLinks& links = entry.Data();
|
ObservingLinks& links = entry.Data();
|
||||||
nsTObserverArray<Link*>::BackwardIterator linksIter(links.mLinks);
|
for (Link* link : links.mLinks.BackwardRange()) {
|
||||||
while (linksIter.HasMore()) {
|
|
||||||
Link* link = linksIter.GetNext();
|
|
||||||
|
|
||||||
nsIWidget* widget = nsContentUtils::WidgetForContent(link->GetElement());
|
nsIWidget* widget = nsContentUtils::WidgetForContent(link->GetElement());
|
||||||
if (!widget) {
|
if (!widget) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче