зеркало из https://github.com/mozilla/pjs.git
added PaintOutline to paint CSS outlines to paint method
This commit is contained in:
Родитель
cca8d157fc
Коммит
efa83b4cb5
|
@ -5167,6 +5167,9 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext,
|
||||
skipSides);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
|
||||
// Child elements have the opportunity to override the visibility
|
||||
|
|
|
@ -5167,6 +5167,9 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext,
|
||||
skipSides);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
|
||||
// Child elements have the opportunity to override the visibility
|
||||
|
|
|
@ -5167,6 +5167,9 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext,
|
||||
skipSides);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
|
||||
// Child elements have the opportunity to override the visibility
|
||||
|
|
|
@ -69,6 +69,8 @@ nsHTMLContainerFrame::Paint(nsIPresContext& aPresContext,
|
|||
aDirtyRect, rect, *color, *spacing, 0, 0);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, skipSides);
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,8 +46,12 @@ nsLeafFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsRect rect(0, 0, mRect.width, mRect.height);
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *myColor, *mySpacing, 0, 0);
|
||||
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *mySpacing, mStyleContext, 0);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *mySpacing, mStyleContext, 0);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
|
@ -5167,6 +5167,9 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext,
|
||||
skipSides);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
|
||||
// Child elements have the opportunity to override the visibility
|
||||
|
|
|
@ -5167,6 +5167,9 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext,
|
||||
skipSides);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
|
||||
// Child elements have the opportunity to override the visibility
|
||||
|
|
|
@ -5167,6 +5167,9 @@ nsBlockFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext,
|
||||
skipSides);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
|
||||
// Child elements have the opportunity to override the visibility
|
||||
|
|
|
@ -69,6 +69,8 @@ nsHTMLContainerFrame::Paint(nsIPresContext& aPresContext,
|
|||
aDirtyRect, rect, *color, *spacing, 0, 0);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, skipSides);
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,8 +46,12 @@ nsLeafFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsRect rect(0, 0, mRect.width, mRect.height);
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *myColor, *mySpacing, 0, 0);
|
||||
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *mySpacing, mStyleContext, 0);
|
||||
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *mySpacing, mStyleContext, 0);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
|
@ -668,6 +668,8 @@ nsScrollFrame::Paint(nsIPresContext& aPresContext,
|
|||
nsRect rect(0, 0, mRect.width, mRect.height);
|
||||
nsCSSRendering::PaintBorder(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
nsCSSRendering::PaintOutline(aPresContext, aRenderingContext, this,
|
||||
aDirtyRect, rect, *spacing, mStyleContext, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче