mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
16381 "Need to be able to specify -moz-border-radius for each corner". Made changes in the following files in order to store the radius as a nsCSSRect and support 4 new -moz-border-radius properties (topLeft, topRight, bottomRight, bottomLeft):
This commit is contained in:
parent
bdf8bc768d
commit
74c0693bb2
@ -1389,7 +1389,7 @@ void nsCSSRendering::PaintBorder(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
// get the radius for our border
|
||||
borderRadius = aBorderStyle.mBorderRadius;
|
||||
aBorderStyle.mBorderRadius.GetTop(borderRadius); // XXX-border-radius
|
||||
theRadius = 0;
|
||||
switch (borderRadius.GetUnit() ) {
|
||||
case eStyleUnit_Inherit:
|
||||
@ -2190,7 +2190,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
|
||||
// is rendered over the 'border' 'padding' and 'content' areas
|
||||
if (!transparentBG) {
|
||||
// check to see if we have a radius
|
||||
borderRadius = aSpacing.mBorderRadius;
|
||||
aSpacing.mBorderRadius.GetTop(borderRadius); // XXX-border-radius
|
||||
theRadius = 0;
|
||||
switch (borderRadius.GetUnit() ) {
|
||||
case eStyleUnit_Inherit:
|
||||
|
@ -1389,7 +1389,7 @@ void nsCSSRendering::PaintBorder(nsIPresContext* aPresContext,
|
||||
}
|
||||
|
||||
// get the radius for our border
|
||||
borderRadius = aBorderStyle.mBorderRadius;
|
||||
aBorderStyle.mBorderRadius.GetTop(borderRadius); // XXX-border-radius
|
||||
theRadius = 0;
|
||||
switch (borderRadius.GetUnit() ) {
|
||||
case eStyleUnit_Inherit:
|
||||
@ -2190,7 +2190,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
|
||||
// is rendered over the 'border' 'padding' and 'content' areas
|
||||
if (!transparentBG) {
|
||||
// check to see if we have a radius
|
||||
borderRadius = aSpacing.mBorderRadius;
|
||||
aSpacing.mBorderRadius.GetTop(borderRadius); // XXX-border-radius
|
||||
theRadius = 0;
|
||||
switch (borderRadius.GetUnit() ) {
|
||||
case eStyleUnit_Inherit:
|
||||
|
Loading…
x
Reference in New Issue
Block a user