зеркало из https://github.com/mozilla/gecko-dev.git
Bug 918682 - Fix the check for finding the root content document's root scroll frame. r=tn
This commit is contained in:
Родитель
650189ea89
Коммит
370d1627f6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче