mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 916115: In StickyScrollContainer::UpdatePositions, put do_QueryFrame result in a local var before comparing it for equality. r=corey
This commit is contained in:
parent
3c91242dfd
commit
9ad8b4ba29
@ -259,8 +259,13 @@ void
|
||||
StickyScrollContainer::UpdatePositions(nsPoint aScrollPosition,
|
||||
nsIFrame* aSubtreeRoot)
|
||||
{
|
||||
NS_ASSERTION(!aSubtreeRoot || aSubtreeRoot == do_QueryFrame(mScrollFrame),
|
||||
"If reflowing, should be reflowing the scroll frame");
|
||||
#ifdef DEBUG
|
||||
{
|
||||
nsIFrame* scrollFrameAsFrame = do_QueryFrame(mScrollFrame);
|
||||
NS_ASSERTION(!aSubtreeRoot || aSubtreeRoot == scrollFrameAsFrame,
|
||||
"If reflowing, should be reflowing the scroll frame");
|
||||
}
|
||||
#endif
|
||||
mScrollPosition = aScrollPosition;
|
||||
|
||||
OverflowChangedTracker oct;
|
||||
|
Loading…
Reference in New Issue
Block a user