diff --git a/mozilla/layout/generic/nsGfxScrollFrame.cpp b/mozilla/layout/generic/nsGfxScrollFrame.cpp index 090e9dfd68a..a5f2722f0c1 100644 --- a/mozilla/layout/generic/nsGfxScrollFrame.cpp +++ b/mozilla/layout/generic/nsGfxScrollFrame.cpp @@ -1121,7 +1121,7 @@ nsGfxScrollFrame::AttributeChanged(nsIDocument *aDocument, mHScrollbarFrame->GetContent(getter_AddRefs(hcontent)); mVScrollbarFrame->GetContent(getter_AddRefs(vcontent)); - if (hcontent == aContent || vcontent == aContent) + if (hcontent.get() == aContent || vcontent.get() == aContent) { nscoord x = 0; nscoord y = 0; diff --git a/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp b/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp index 090e9dfd68a..a5f2722f0c1 100644 --- a/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp +++ b/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp @@ -1121,7 +1121,7 @@ nsGfxScrollFrame::AttributeChanged(nsIDocument *aDocument, mHScrollbarFrame->GetContent(getter_AddRefs(hcontent)); mVScrollbarFrame->GetContent(getter_AddRefs(vcontent)); - if (hcontent == aContent || vcontent == aContent) + if (hcontent.get() == aContent || vcontent.get() == aContent) { nscoord x = 0; nscoord y = 0;