Display inline borders/background during content painting, not during background painting (per css2 spec)

This commit is contained in:
kipp%netscape.com 1998-12-18 22:12:15 +00:00
Родитель 2c62988710
Коммит 60100e4875
6 изменённых файлов: 24 добавлений и 6 удалений

Просмотреть файл

@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
mStyleContext->GetStyleData(eStyleStruct_Display);
// 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();
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);

Просмотреть файл

@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
mStyleContext->GetStyleData(eStyleStruct_Display);
// 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();
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);

Просмотреть файл

@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
mStyleContext->GetStyleData(eStyleStruct_Display);
// 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();
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);

Просмотреть файл

@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
mStyleContext->GetStyleData(eStyleStruct_Display);
// 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();
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);

Просмотреть файл

@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
mStyleContext->GetStyleData(eStyleStruct_Display);
// 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();
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);

Просмотреть файл

@ -3844,7 +3844,10 @@ nsBaseIBFrame::Paint(nsIPresContext& aPresContext,
mStyleContext->GetStyleData(eStyleStruct_Display);
// 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();
const nsStyleColor* color = (const nsStyleColor*)
mStyleContext->GetStyleData(eStyleStruct_Color);