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:
Seth Fowler 2014-10-13 15:49:16 -07:00
Родитель 0127974f52
Коммит 86552e490a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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()) {