зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1081683 - Check for table cells correctly when warning about positioned table parts. r=bz
--HG-- extra : rebase_source : 0c69d17fbfcf3dd1273abf16988c70245522b349
This commit is contained in:
Родитель
0127974f52
Коммит
86552e490a
|
@ -273,7 +273,7 @@ nsTableFrame::RegisterPositionedTablePart(nsIFrame* aFrame)
|
|||
// the potential to break sites that apply 'position: relative' to those
|
||||
// parts, expecting nothing to happen. We warn at the console to make tracking
|
||||
// down the issue easy.
|
||||
if (nsGkAtoms::tableCellFrame != aFrame->GetType()) {
|
||||
if (!IS_TABLE_CELL(aFrame->GetType())) {
|
||||
nsIContent* content = aFrame->GetContent();
|
||||
nsPresContext* presContext = aFrame->PresContext();
|
||||
if (content && !presContext->HasWarnedAboutPositionedTableParts()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче