mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00
Fix use of incorrect variable, and harmless but valgrind-noisy use of variables in incorrect order. (Bug 455093)
This commit is contained in:
parent
9c927060cc
commit
425e04d23f
@ -189,11 +189,12 @@ ProcessTableRulesAttribute(void* aStyleStruct,
|
||||
nscolor borderColor;
|
||||
PRBool foreground;
|
||||
borderData->GetBorderColor(aSide, borderColor, foreground);
|
||||
if (NS_GET_A(borderColor) == 0 || foreground) {
|
||||
if (foreground || NS_GET_A(borderColor) == 0) {
|
||||
// use the table's border color if it is set, otherwise use black
|
||||
nscolor tableBorderColor;
|
||||
tableBorderData->GetBorderColor(aSide, tableBorderColor, foreground);
|
||||
borderColor = (NS_GET_A(borderColor) == 0 || foreground) ? NS_RGB(0,0,0) : tableBorderColor;
|
||||
borderColor = (foreground || NS_GET_A(tableBorderColor) == 0)
|
||||
? NS_RGB(0,0,0) : tableBorderColor;
|
||||
borderData->SetBorderColor(aSide, borderColor);
|
||||
}
|
||||
// set the border width to be 1 pixel
|
||||
|
Loading…
x
Reference in New Issue
Block a user