Display inline borders/background during content painting, not during background painting (per css2 spec)
This commit is contained in:
@@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
|
|||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
|
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
if ((eFramePaintLayer_Underlay == aWhichLayer) && disp->mVisible) {
|
if (disp->mVisible &&
|
||||||
|
(((0 != (BLOCK_IS_INLINE & mFlags)) &&
|
||||||
|
(eFramePaintLayer_Content == aWhichLayer)) ||
|
||||||
|
(eFramePaintLayer_Underlay == aWhichLayer))) {
|
||||||
PRIntn skipSides = GetSkipSides();
|
PRIntn skipSides = GetSkipSides();
|
||||||
const nsStyleColor* color = (const nsStyleColor*)
|
const nsStyleColor* color = (const nsStyleColor*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Color);
|
mStyleContext->GetStyleData(eStyleStruct_Color);
|
||||||
|
|||||||
@@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
|
|||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
|
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
if ((eFramePaintLayer_Underlay == aWhichLayer) && disp->mVisible) {
|
if (disp->mVisible &&
|
||||||
|
(((0 != (BLOCK_IS_INLINE & mFlags)) &&
|
||||||
|
(eFramePaintLayer_Content == aWhichLayer)) ||
|
||||||
|
(eFramePaintLayer_Underlay == aWhichLayer))) {
|
||||||
PRIntn skipSides = GetSkipSides();
|
PRIntn skipSides = GetSkipSides();
|
||||||
const nsStyleColor* color = (const nsStyleColor*)
|
const nsStyleColor* color = (const nsStyleColor*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Color);
|
mStyleContext->GetStyleData(eStyleStruct_Color);
|
||||||
|
|||||||
@@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
|
|||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
|
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
if ((eFramePaintLayer_Underlay == aWhichLayer) && disp->mVisible) {
|
if (disp->mVisible &&
|
||||||
|
(((0 != (BLOCK_IS_INLINE & mFlags)) &&
|
||||||
|
(eFramePaintLayer_Content == aWhichLayer)) ||
|
||||||
|
(eFramePaintLayer_Underlay == aWhichLayer))) {
|
||||||
PRIntn skipSides = GetSkipSides();
|
PRIntn skipSides = GetSkipSides();
|
||||||
const nsStyleColor* color = (const nsStyleColor*)
|
const nsStyleColor* color = (const nsStyleColor*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Color);
|
mStyleContext->GetStyleData(eStyleStruct_Color);
|
||||||
|
|||||||
@@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
|
|||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
|
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
if ((eFramePaintLayer_Underlay == aWhichLayer) && disp->mVisible) {
|
if (disp->mVisible &&
|
||||||
|
(((0 != (BLOCK_IS_INLINE & mFlags)) &&
|
||||||
|
(eFramePaintLayer_Content == aWhichLayer)) ||
|
||||||
|
(eFramePaintLayer_Underlay == aWhichLayer))) {
|
||||||
PRIntn skipSides = GetSkipSides();
|
PRIntn skipSides = GetSkipSides();
|
||||||
const nsStyleColor* color = (const nsStyleColor*)
|
const nsStyleColor* color = (const nsStyleColor*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Color);
|
mStyleContext->GetStyleData(eStyleStruct_Color);
|
||||||
|
|||||||
@@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
|
|||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
|
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
if ((eFramePaintLayer_Underlay == aWhichLayer) && disp->mVisible) {
|
if (disp->mVisible &&
|
||||||
|
(((0 != (BLOCK_IS_INLINE & mFlags)) &&
|
||||||
|
(eFramePaintLayer_Content == aWhichLayer)) ||
|
||||||
|
(eFramePaintLayer_Underlay == aWhichLayer))) {
|
||||||
PRIntn skipSides = GetSkipSides();
|
PRIntn skipSides = GetSkipSides();
|
||||||
const nsStyleColor* color = (const nsStyleColor*)
|
const nsStyleColor* color = (const nsStyleColor*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Color);
|
mStyleContext->GetStyleData(eStyleStruct_Color);
|
||||||
|
|||||||
@@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
|
|||||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||||
|
|
||||||
// Only paint the border and background if we're visible
|
// Only paint the border and background if we're visible
|
||||||
if ((eFramePaintLayer_Underlay == aWhichLayer) && disp->mVisible) {
|
if (disp->mVisible &&
|
||||||
|
(((0 != (BLOCK_IS_INLINE & mFlags)) &&
|
||||||
|
(eFramePaintLayer_Content == aWhichLayer)) ||
|
||||||
|
(eFramePaintLayer_Underlay == aWhichLayer))) {
|
||||||
PRIntn skipSides = GetSkipSides();
|
PRIntn skipSides = GetSkipSides();
|
||||||
const nsStyleColor* color = (const nsStyleColor*)
|
const nsStyleColor* color = (const nsStyleColor*)
|
||||||
mStyleContext->GetStyleData(eStyleStruct_Color);
|
mStyleContext->GetStyleData(eStyleStruct_Color);
|
||||||
|
|||||||
Reference in New Issue
Block a user