зеркало из https://github.com/mozilla/gecko-dev.git
Backing-out previous change which had the effect of getting rid of the widgets for *all* fixed positioned elements. Removing widgets is a goal at term but it's something that we want to leave to the View Manager folk(s) or at least do in sync with them.
This commit is contained in:
Родитель
a00b3b52d4
Коммит
97457e62bb
|
@ -468,10 +468,7 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext* aPresContext,
|
|||
aStyleContext->GetStyleData(eStyleStruct_Position);
|
||||
|
||||
if (NS_STYLE_POSITION_FIXED == position->mPosition) {
|
||||
nsRect rect;
|
||||
view->GetBounds(rect);
|
||||
if (! rect.IsEmpty())
|
||||
view->CreateWidget(kCChildCID);
|
||||
view->CreateWidget(kCChildCID);
|
||||
}
|
||||
|
||||
viewManager->SetViewOpacity(view, color->mOpacity);
|
||||
|
|
|
@ -468,10 +468,7 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext* aPresContext,
|
|||
aStyleContext->GetStyleData(eStyleStruct_Position);
|
||||
|
||||
if (NS_STYLE_POSITION_FIXED == position->mPosition) {
|
||||
nsRect rect;
|
||||
view->GetBounds(rect);
|
||||
if (! rect.IsEmpty())
|
||||
view->CreateWidget(kCChildCID);
|
||||
view->CreateWidget(kCChildCID);
|
||||
}
|
||||
|
||||
viewManager->SetViewOpacity(view, color->mOpacity);
|
||||
|
|
Загрузка…
Ссылка в новой задаче