mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
0127974f52
commit
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user