Bug 1358832, don't flush layout when swapping frameloaders, r=bz

This commit is contained in:
Olli Pettay 2017-05-09 18:48:09 +03:00
Родитель a200fe8303
Коммит 11f1740840
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -1507,9 +1507,6 @@ nsFrameLoader::SwapWithOtherRemoteLoader(nsFrameLoader* aOther,
ourShell->BackingScaleFactorChanged();
otherShell->BackingScaleFactorChanged();
ourDoc->FlushPendingNotifications(FlushType::Layout);
otherDoc->FlushPendingNotifications(FlushType::Layout);
// Initialize browser API if needed now that owner content has changed.
InitializeBrowserAPI();
aOther->InitializeBrowserAPI();
@ -1950,9 +1947,6 @@ nsFrameLoader::SwapWithOtherLoader(nsFrameLoader* aOther,
ourShell->BackingScaleFactorChanged();
otherShell->BackingScaleFactorChanged();
ourParentDocument->FlushPendingNotifications(FlushType::Layout);
otherParentDocument->FlushPendingNotifications(FlushType::Layout);
// Initialize browser API if needed now that owner content has changed
InitializeBrowserAPI();
aOther->InitializeBrowserAPI();