Bug 918682 - Fix the check for finding the root content document's root scroll frame. r=tn

This commit is contained in:
Kartikaya Gupta 2013-09-27 15:15:57 -04:00
Родитель 650189ea89
Коммит 370d1627f6
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -729,8 +729,8 @@ static void RecordFrameMetrics(nsIFrame* aForFrame,
// the page is zoomed in, the frame's size might be larger than the widget
// bounds, but we don't want the composition bounds to be.
bool useWidgetBounds = false;
bool isRootContentDocRootScrollFrame = aForFrame->GetParent() == nullptr
&& presContext->IsRootContentDocument();
bool isRootContentDocRootScrollFrame = presContext->IsRootContentDocument()
&& aScrollFrame == presShell->GetRootScrollFrame();
if (isRootContentDocRootScrollFrame) {
if (nsIWidget* widget = aForFrame->GetNearestWidget()) {
nsIntRect bounds;