зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1348665 part 3 - Remove the aFlags param to SyncFrameViewProperties because all callers pass zero. r=tnikkel
MozReview-Commit-ID: 7zohl3bOsO1
This commit is contained in:
Родитель
896c347cb8
Коммит
4b52d84cfa
|
@ -1021,8 +1021,7 @@ void
|
||||||
nsIFrame::SyncFrameViewProperties(nsPresContext* aPresContext,
|
nsIFrame::SyncFrameViewProperties(nsPresContext* aPresContext,
|
||||||
nsIFrame* aFrame,
|
nsIFrame* aFrame,
|
||||||
nsStyleContext* aStyleContext,
|
nsStyleContext* aStyleContext,
|
||||||
nsView* aView,
|
nsView* aView)
|
||||||
uint32_t aFlags)
|
|
||||||
{
|
{
|
||||||
NS_ASSERTION(!aStyleContext || aFrame->StyleContext() == aStyleContext,
|
NS_ASSERTION(!aStyleContext || aFrame->StyleContext() == aStyleContext,
|
||||||
"Wrong style context for frame?");
|
"Wrong style context for frame?");
|
||||||
|
@ -1038,8 +1037,7 @@ nsIFrame::SyncFrameViewProperties(nsPresContext* aPresContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure visibility is correct. This only affects nsSubdocumentFrame.
|
// Make sure visibility is correct. This only affects nsSubdocumentFrame.
|
||||||
if (0 == (aFlags & NS_FRAME_NO_VISIBILITY) &&
|
if (!aFrame->SupportsVisibilityHidden()) {
|
||||||
!aFrame->SupportsVisibilityHidden()) {
|
|
||||||
// See if the view should be hidden or visible
|
// See if the view should be hidden or visible
|
||||||
vm->SetViewVisibility(aView,
|
vm->SetViewVisibility(aView,
|
||||||
aStyleContext->StyleVisibility()->IsVisible()
|
aStyleContext->StyleVisibility()->IsVisible()
|
||||||
|
|
|
@ -2487,8 +2487,7 @@ public:
|
||||||
static void SyncFrameViewProperties(nsPresContext* aPresContext,
|
static void SyncFrameViewProperties(nsPresContext* aPresContext,
|
||||||
nsIFrame* aFrame,
|
nsIFrame* aFrame,
|
||||||
nsStyleContext* aStyleContext,
|
nsStyleContext* aStyleContext,
|
||||||
nsView* aView,
|
nsView* aView);
|
||||||
uint32_t aFlags = 0);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the offset between the coordinate systems of |this| and aOther.
|
* Get the offset between the coordinate systems of |this| and aOther.
|
||||||
|
|
|
@ -530,7 +530,7 @@ nsMenuPopupFrame::LayoutPopup(nsBoxLayoutState& aState, nsIFrame* aParentMenu,
|
||||||
}
|
}
|
||||||
|
|
||||||
viewManager->SetViewVisibility(view, nsViewVisibility_kShow);
|
viewManager->SetViewVisibility(view, nsViewVisibility_kShow);
|
||||||
nsContainerFrame::SyncFrameViewProperties(pc, this, nullptr, view, 0);
|
nsContainerFrame::SyncFrameViewProperties(pc, this, nullptr, view);
|
||||||
}
|
}
|
||||||
|
|
||||||
// finally, if the popup just opened, send a popupshown event
|
// finally, if the popup just opened, send a popupshown event
|
||||||
|
|
Загрузка…
Ссылка в новой задаче