mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't create a frame for the root element if it's styled display:none. b=454361 r+sr=roc
This commit is contained in:
parent
fe5c11a5ea
commit
8301514138
@ -4137,6 +4137,12 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsFrameConstructorState& aState,
|
||||
"Scrollbars should have been propagated to the viewport");
|
||||
#endif
|
||||
|
||||
if (NS_UNLIKELY(display->mDisplay == NS_STYLE_DISPLAY_NONE)) {
|
||||
mInitialContainingBlock = nsnull;
|
||||
mRootElementStyleFrame = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsFrameConstructorSaveState absoluteSaveState;
|
||||
if (mHasRootAbsPosContainingBlock) {
|
||||
// Push the absolute containing block now so we can absolutely position
|
||||
|
Loading…
Reference in New Issue
Block a user