| Index: Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| diff --git a/Source/modules/geolocation/testing/InternalsGeolocation.cpp b/Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| index 4de6488e9f88d72f6ee60b3fb7ce715f4ccd8be6..06a1e6a07d8161344dda08c09758b0ca5045844f 100644
|
| --- a/Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| +++ b/Source/modules/geolocation/testing/InternalsGeolocation.cpp
|
| @@ -47,8 +47,8 @@ void InternalsGeolocation::setGeolocationClientMock(Internals&, Document* docume
|
| ASSERT(document && document->frame());
|
| GeolocationClientMock* client = new GeolocationClientMock();
|
|
|
| - for (LocalFrame* childFrame = document->page()->mainFrame(); childFrame; childFrame = childFrame->tree().nextSibling())
|
| - GeolocationController::from(document->frame())->setClientForTest(client);
|
| + for (LocalFrame* childFrame = document->page()->mainFrame(); childFrame; childFrame = childFrame->tree().traverseNext())
|
| + GeolocationController::from(childFrame)->setClientForTest(client);
|
| }
|
|
|
| void InternalsGeolocation::setGeolocationPosition(Internals&, Document* document, double latitude, double longitude, double accuracy)
|
|
|