Bug 255411 "Use my colors" preference makes popup/hover frames have transparent background

r=bzbarsky sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@180852 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ginn.chen%sun.com
2005-09-23 08:08:09 +00:00
parent 990e2b363b
commit 5e70529bc8
2 changed files with 11 additions and 3 deletions

View File

@@ -2247,7 +2247,7 @@ nsresult PresShell::SetPrefColorRules(void)
// background: #RRGGBB !important;}'
ColorToString(textColor,strColor);
ColorToString(bgColor,strBackgroundColor);
result = sheet->InsertRule(NS_LITERAL_STRING(":root {color:") +
result = sheet->InsertRule(NS_LITERAL_STRING("*|*:root {color:") +
strColor +
NS_LITERAL_STRING(" !important; ") +
NS_LITERAL_STRING("border-color: -moz-use-text-color !important; ") +
@@ -2258,8 +2258,10 @@ nsresult PresShell::SetPrefColorRules(void)
NS_ENSURE_SUCCESS(result, result);
///////////////////////////////////////////////////////////////
// - everything else inherits the color, and has transparent background
result = sheet->InsertRule(NS_LITERAL_STRING("* {color: inherit !important; border-color: -moz-use-text-color !important; background: transparent !important;} "),
// - everything else inherits the color
// (the background color will be handled in
// nsRuleNode::ComputeBackgroundData)
result = sheet->InsertRule(NS_LITERAL_STRING("*|* {color: inherit !important; border-color: -moz-use-text-color !important; background-image: none !important; } "),
sInsertPrefSheetRulesAt, &index);
}
}