Bug 1155025. Make the root layer on fennec have null scroll id with containerless scrolling. r=mstange

On Android we want the root xul document to get a null scroll id so that the root content document gets the first non-null scroll id.
This commit is contained in:
Timothy Nikkel 2015-04-16 12:34:17 -05:00
Родитель 1d40faa3cd
Коммит 7f088bfbe8
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1709,7 +1709,11 @@ already_AddRefed<LayerManager> nsDisplayList::PaintRoot(nsDisplayListBuilder* aB
} else if (!gfxPrefs::LayoutUseContainersForRootFrames()) {
// If there is no root scroll frame, and we're using containerless
// scrolling, pick the document element instead.
// On Android we want the root xul document to get a null scroll id
// so that the root content document gets the first non-null scroll id.
#ifndef MOZ_WIDGET_ANDROID
content = document->GetDocumentElement();
#endif
}
root->SetFrameMetrics(