зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0fca77b617
Коммит
3a0897f083
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче