Backed out changeset e5e9bf4c7e67 (bug 1724088) for causing reftest failures on iframe-modify-scrolling-attr-to-yes.html. CLOSED TREE

This commit is contained in:
Iulian Moraru 2021-08-05 20:54:22 +03:00
parent 39d533b177
commit 8087e2edb3

View File

@ -5694,8 +5694,7 @@ void ScrollFrameHelper::CurPosAttributeChanged(nsIContent* aContent,
return;
}
if (mScrollbarActivity &&
(mHasHorizontalScrollbar || mHasVerticalScrollbar)) {
if (mScrollbarActivity) {
RefPtr<ScrollbarActivity> scrollbarActivity(mScrollbarActivity);
scrollbarActivity->ActivityOccurred();
}
@ -6988,8 +6987,7 @@ void ScrollFrameHelper::SetCoordAttribute(Element* aElement, nsAtom* aAtom,
return;
}
if (mScrollbarActivity &&
(mHasHorizontalScrollbar || mHasVerticalScrollbar)) {
if (mScrollbarActivity) {
RefPtr<ScrollbarActivity> scrollbarActivity(mScrollbarActivity);
scrollbarActivity->ActivityOccurred();
}