зеркало из https://github.com/mozilla/pjs.git
Paint backgrounds and borders for inline elements in the foreground layer. b=36710, 27757 r=buster@netscape.com
This commit is contained in:
Родитель
37748e21f8
Коммит
d415d67ba1
|
@ -61,7 +61,12 @@ nsHTMLContainerFrame::Paint(nsIPresContext* aPresContext,
|
|||
if (NS_FRAME_IS_UNFLOWABLE & mState) {
|
||||
return NS_OK;
|
||||
}
|
||||
if (NS_FRAME_PAINT_LAYER_BACKGROUND == aWhichLayer) {
|
||||
nsCOMPtr<nsIAtom> frameType;
|
||||
GetFrameType(getter_AddRefs(frameType));
|
||||
|
||||
// Paint inline element backgrounds in the foreground layer, but
|
||||
// others in the background (bug 36710).
|
||||
if (((frameType.get() == nsLayoutAtoms::inlineFrame)?NS_FRAME_PAINT_LAYER_FOREGROUND:NS_FRAME_PAINT_LAYER_BACKGROUND) == aWhichLayer) {
|
||||
const nsStyleDisplay* disp = (const nsStyleDisplay*)
|
||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
if (disp->IsVisible() && mRect.width && mRect.height) {
|
||||
|
|
|
@ -61,7 +61,12 @@ nsHTMLContainerFrame::Paint(nsIPresContext* aPresContext,
|
|||
if (NS_FRAME_IS_UNFLOWABLE & mState) {
|
||||
return NS_OK;
|
||||
}
|
||||
if (NS_FRAME_PAINT_LAYER_BACKGROUND == aWhichLayer) {
|
||||
nsCOMPtr<nsIAtom> frameType;
|
||||
GetFrameType(getter_AddRefs(frameType));
|
||||
|
||||
// Paint inline element backgrounds in the foreground layer, but
|
||||
// others in the background (bug 36710).
|
||||
if (((frameType.get() == nsLayoutAtoms::inlineFrame)?NS_FRAME_PAINT_LAYER_FOREGROUND:NS_FRAME_PAINT_LAYER_BACKGROUND) == aWhichLayer) {
|
||||
const nsStyleDisplay* disp = (const nsStyleDisplay*)
|
||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
if (disp->IsVisible() && mRect.width && mRect.height) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче