use table display type for decision about the documentElement only if the frame creation is not tag based bug 340945 r/sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@209733 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
84e8796e94
commit
04ee0a91e7
@ -4597,7 +4597,10 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsFrameConstructorState& aState,
|
||||
// by the style system, so we can assume that display->mDisplay is
|
||||
// either NONE, BLOCK, or TABLE.
|
||||
|
||||
PRBool docElemIsTable = display->mDisplay == NS_STYLE_DISPLAY_TABLE;
|
||||
PRBool docElemIsTable = (display->mDisplay == NS_STYLE_DISPLAY_TABLE) &&
|
||||
!IsSpecialContent(aDocElement, aDocElement->Tag(),
|
||||
aDocElement->GetNameSpaceID(),
|
||||
styleContext);
|
||||
|
||||
if (docElemIsTable) {
|
||||
// if the document is a table then just populate it.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user