From 720c6e3fc50d8a2ae2e5ce39f24ffe94a9ffbd38 Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Thu, 19 May 2005 16:36:39 +0000 Subject: [PATCH] bug 38174: Open transient styles before
  • tags so that bullets and list numbers inherit the proper styles when there is a on the RS stack. r=bzbarsky sr=brendan a=asa git-svn-id: svn://10.0.0.236/trunk@173582 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/parser/htmlparser/src/CNavDTD.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/parser/htmlparser/src/CNavDTD.cpp b/mozilla/parser/htmlparser/src/CNavDTD.cpp index 7ddeff2796d..149b237cb59 100644 --- a/mozilla/parser/htmlparser/src/CNavDTD.cpp +++ b/mozilla/parser/htmlparser/src/CNavDTD.cpp @@ -3236,8 +3236,11 @@ CNavDTD::OpenContainer(const nsCParserNode *aNode, nsresult result = NS_OK; PRBool done = PR_TRUE; PRBool rs_tag = nsHTMLElement::IsResidualStyleTag(aTag); + // We need to open transient styles to encompass the
  • so that the bullets + // inherit the proper colors. + PRBool li_tag = aTag == eHTMLTag_li; - if (rs_tag) { + if (rs_tag || li_tag) { /*********************************************************************** * Here's an interesting problem: *