зеркало из https://github.com/mozilla/gecko-dev.git
use table display type for decision about the documentElement only if the frame creation is not tag based bug 340945 r/sr=bzbarsky
This commit is contained in:
Родитель
bc407caf25
Коммит
fc928f9cd2
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче