diff --git a/mozilla/layout/base/nsCSSRendering.cpp b/mozilla/layout/base/nsCSSRendering.cpp index 8c20ced7a52..be3ba13441e 100644 --- a/mozilla/layout/base/nsCSSRendering.cpp +++ b/mozilla/layout/base/nsCSSRendering.cpp @@ -1724,7 +1724,7 @@ void nsCSSRendering::PaintBorder(nsPresContext* aPresContext, switch ( bordStyleRadius[i].GetUnit()) { case eStyleUnit_Percent: percent = bordStyleRadius[i].GetPercentValue(); - borderRadii[i] = (nscoord)(percent * aBorderArea.width); + borderRadii[i] = (nscoord)(percent * aForFrame->GetSize().width); break; case eStyleUnit_Coord: borderRadii[i] = bordStyleRadius[i].GetCoordValue(); @@ -3347,7 +3347,8 @@ nsCSSRendering::PaintBackgroundColor(nsPresContext* aPresContext, borderRadii[side] = 0; switch (bordStyleRadius[side].GetUnit()) { case eStyleUnit_Percent: - borderRadii[side] = nscoord(bordStyleRadius[side].GetPercentValue() * aBgClipArea.width); + borderRadii[side] = nscoord(bordStyleRadius[side].GetPercentValue() * + aForFrame->GetSize().width); break; case eStyleUnit_Coord: borderRadii[side] = bordStyleRadius[side].GetCoordValue(); diff --git a/mozilla/layout/reftests/bugs/364861-1-ref.html b/mozilla/layout/reftests/bugs/364861-1-ref.html new file mode 100644 index 00000000000..590b286cd82 --- /dev/null +++ b/mozilla/layout/reftests/bugs/364861-1-ref.html @@ -0,0 +1,13 @@ + + + +
+
+ + diff --git a/mozilla/layout/reftests/bugs/364861-1.html b/mozilla/layout/reftests/bugs/364861-1.html new file mode 100644 index 00000000000..5937a9e95f1 --- /dev/null +++ b/mozilla/layout/reftests/bugs/364861-1.html @@ -0,0 +1,13 @@ + + + +
+
+ + diff --git a/mozilla/layout/reftests/reftest.list b/mozilla/layout/reftests/reftest.list index d76107352cf..afbb012860f 100644 --- a/mozilla/layout/reftests/reftest.list +++ b/mozilla/layout/reftests/reftest.list @@ -30,6 +30,7 @@ f== bugs/360065-1.html bugs/360065-1-ref.html # bug 18217 != bugs/315620-2b.xhtml bugs/315620-2-ref.xhtml == bugs/363637-1.html bugs/363637-1-ref.html == bugs/364079-1.html bugs/364079-1-ref.html +== bugs/364861-1.html bugs/364861-1-ref.html # table-dom/ == table-dom/appendCells1.html table-dom/appendCells1-ref.html