Bug 152979, r=dbaron,chak, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@123712 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -61,7 +61,6 @@
|
||||
#include "nsHTMLAtoms.h"
|
||||
#include "nsHTMLValue.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMHTMLTableCellElement.h"
|
||||
#include "nsIHTMLContent.h"
|
||||
#include "prprf.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
@@ -6568,9 +6567,12 @@ nsBlockFrame::IsTDTableCellBlock(nsIFrame& aFrame)
|
||||
if (nsLayoutAtoms::tableCellFrame == frameType) {
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aFrame.GetContent(getter_AddRefs(content));
|
||||
nsCOMPtr<nsIDOMHTMLTableCellElement> cellContent(do_QueryInterface(content));
|
||||
if (cellContent) {
|
||||
return PR_TRUE;
|
||||
if (content && content->IsContentOfType(nsIContent::eHTML)) {
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
content->GetTag(*getter_AddRefs(tag));
|
||||
if (tag == nsHTMLAtoms::td) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
#include "nsHTMLAtoms.h"
|
||||
#include "nsHTMLValue.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMHTMLTableCellElement.h"
|
||||
#include "nsIHTMLContent.h"
|
||||
#include "prprf.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
@@ -6568,9 +6567,12 @@ nsBlockFrame::IsTDTableCellBlock(nsIFrame& aFrame)
|
||||
if (nsLayoutAtoms::tableCellFrame == frameType) {
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aFrame.GetContent(getter_AddRefs(content));
|
||||
nsCOMPtr<nsIDOMHTMLTableCellElement> cellContent(do_QueryInterface(content));
|
||||
if (cellContent) {
|
||||
return PR_TRUE;
|
||||
if (content && content->IsContentOfType(nsIContent::eHTML)) {
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
content->GetTag(*getter_AddRefs(tag));
|
||||
if (tag == nsHTMLAtoms::td) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user