зеркало из https://github.com/mozilla/gecko-dev.git
bug 38174: Open transient styles before <li> tags so that bullets and list numbers inherit the proper styles when there is a <font> on the RS stack. r=bzbarsky sr=brendan a=asa
This commit is contained in:
Родитель
0d3eb7baf5
Коммит
d9dce0a5cd
|
@ -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 <li> 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:
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче