Make inline-block and table-caption elements not ignore text-decoration. b=371249 r+sr=roc a=dsicore

git-svn-id: svn://10.0.0.236/trunk@239219 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2007-11-12 19:13:19 +00:00
parent 677288d9b5
commit 20f9d9ccb6
31 changed files with 248 additions and 2 deletions

View File

@@ -261,8 +261,9 @@ nsHTMLContainerFrame::GetTextDecorations(nsPresContext* aPresContext,
nsStyleContext* styleContext = frame->GetStyleContext();
const nsStyleDisplay* styleDisplay = styleContext->GetStyleDisplay();
if (!styleDisplay->IsBlockOutside() &&
styleDisplay->mDisplay != NS_STYLE_DISPLAY_TABLE_CELL) {
if (!styleDisplay->IsBlockInside() &&
styleDisplay->mDisplay != NS_STYLE_DISPLAY_TABLE_CELL &&
styleDisplay->mDisplay != NS_STYLE_DISPLAY_TABLE_CAPTION) {
// If an inline frame is discovered while walking up the tree,
// we should stop according to CSS3 draft. CSS2 is rather vague
// about this.