зеркало из https://github.com/mozilla/gecko-dev.git
Changed the ordering so we mark the scrolled view as having transparent
content before setting the scrolling view's scrolled view
This commit is contained in:
Родитель
ca6b1690f1
Коммит
0cadccb4e3
|
@ -190,14 +190,15 @@ nsScrollFrame::CreateScrollingView()
|
||||||
// Initialize the view
|
// Initialize the view
|
||||||
scrolledView->Init(viewManager, nsRect(0, 0, 0, 0), parentView);
|
scrolledView->Init(viewManager, nsRect(0, 0, 0, 0), parentView);
|
||||||
|
|
||||||
// Set it as the scrolling view's scrolled view
|
// If the background is transparent then inform the view manager. Note:
|
||||||
scrollingView->SetScrolledView(scrolledView);
|
// we need to do this before we set the scrolling view's scrolled view
|
||||||
|
|
||||||
// If the background is transparent then inform the view manager
|
|
||||||
if (isTransparent) {
|
if (isTransparent) {
|
||||||
viewManager->SetViewContentTransparency(scrolledView, PR_TRUE);
|
viewManager->SetViewContentTransparency(scrolledView, PR_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set it as the scrolling view's scrolled view
|
||||||
|
scrollingView->SetScrolledView(scrolledView);
|
||||||
|
|
||||||
// We need to allow the view's position to be different than the
|
// We need to allow the view's position to be different than the
|
||||||
// frame's position
|
// frame's position
|
||||||
nsFrameState state;
|
nsFrameState state;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче