зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #2285. Just reseting the mFlags isn't enough, because the PaintBackground()
member function ignores the flags and checks for a non-empty URL. This way is safer and should work in all cases
This commit is contained in:
Родитель
111e7e37ca
Коммит
0ec574a5c1
|
@ -474,6 +474,7 @@ BodyFixupRule::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresCont
|
||||||
mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color);
|
mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color);
|
||||||
mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT |
|
mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT |
|
||||||
NS_STYLE_BG_IMAGE_NONE;
|
NS_STYLE_BG_IMAGE_NONE;
|
||||||
|
mutableStyleColor->mBackgroundImage.SetLength(0);
|
||||||
}
|
}
|
||||||
NS_RELEASE(parentContext);
|
NS_RELEASE(parentContext);
|
||||||
}
|
}
|
||||||
|
|
|
@ -474,6 +474,7 @@ BodyFixupRule::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresCont
|
||||||
mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color);
|
mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color);
|
||||||
mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT |
|
mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT |
|
||||||
NS_STYLE_BG_IMAGE_NONE;
|
NS_STYLE_BG_IMAGE_NONE;
|
||||||
|
mutableStyleColor->mBackgroundImage.SetLength(0);
|
||||||
}
|
}
|
||||||
NS_RELEASE(parentContext);
|
NS_RELEASE(parentContext);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче