mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 22:09:32 +00:00
The AIX compiler cannot handle string literals inside of a triconditional statement so use named literals instead.
Thanks to David Baron <dbaron@fas.harvard.edu> for the patch. Fixing tinderbox bustage.
This commit is contained in:
parent
c52ffbbcef
commit
b67ae69035
@ -2242,11 +2242,12 @@ nsresult PresShell::SetPrefLinkRules(void)
|
||||
///////////////////////////////////////////////////////////////
|
||||
// - links: '*:link, *:link:active {color: #RRGGBB [!important];}'
|
||||
ColorToString(linkColor,strColor);
|
||||
NS_NAMED_LITERAL_STRING(notImportantStr, ";} ");
|
||||
NS_NAMED_LITERAL_STRING(importantStr, " !important;} ");
|
||||
nsAString& ruleClose = useDocColors ? notImportantStr : importantStr;
|
||||
result = sheet->InsertRule(NS_LITERAL_STRING("*:link, *:link:active {color:") +
|
||||
strColor +
|
||||
( useDocColors ?
|
||||
NS_LITERAL_STRING(";} ") :
|
||||
NS_LITERAL_STRING(" !important;} ") ),
|
||||
ruleClose,
|
||||
0,&index);
|
||||
NS_ENSURE_SUCCESS(result, result);
|
||||
|
||||
@ -2256,9 +2257,7 @@ nsresult PresShell::SetPrefLinkRules(void)
|
||||
// insert the rule
|
||||
result = sheet->InsertRule(NS_LITERAL_STRING("*:visited, *:visited:active {color:") +
|
||||
strColor +
|
||||
( useDocColors ?
|
||||
NS_LITERAL_STRING(";} ") :
|
||||
NS_LITERAL_STRING(" !important;} ") ),
|
||||
ruleClose,
|
||||
0,&index);
|
||||
}
|
||||
|
||||
|
@ -2242,11 +2242,12 @@ nsresult PresShell::SetPrefLinkRules(void)
|
||||
///////////////////////////////////////////////////////////////
|
||||
// - links: '*:link, *:link:active {color: #RRGGBB [!important];}'
|
||||
ColorToString(linkColor,strColor);
|
||||
NS_NAMED_LITERAL_STRING(notImportantStr, ";} ");
|
||||
NS_NAMED_LITERAL_STRING(importantStr, " !important;} ");
|
||||
nsAString& ruleClose = useDocColors ? notImportantStr : importantStr;
|
||||
result = sheet->InsertRule(NS_LITERAL_STRING("*:link, *:link:active {color:") +
|
||||
strColor +
|
||||
( useDocColors ?
|
||||
NS_LITERAL_STRING(";} ") :
|
||||
NS_LITERAL_STRING(" !important;} ") ),
|
||||
ruleClose,
|
||||
0,&index);
|
||||
NS_ENSURE_SUCCESS(result, result);
|
||||
|
||||
@ -2256,9 +2257,7 @@ nsresult PresShell::SetPrefLinkRules(void)
|
||||
// insert the rule
|
||||
result = sheet->InsertRule(NS_LITERAL_STRING("*:visited, *:visited:active {color:") +
|
||||
strColor +
|
||||
( useDocColors ?
|
||||
NS_LITERAL_STRING(";} ") :
|
||||
NS_LITERAL_STRING(" !important;} ") ),
|
||||
ruleClose,
|
||||
0,&index);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user