fixed frameborder=0 for <IFRAME>s
git-svn-id: svn://10.0.0.236/trunk@13380 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
67cffb963d
commit
5a61e26e0e
@ -209,13 +209,17 @@ nscoord
|
||||
nsHTMLFrameOuterFrame::GetBorderWidth(nsIPresContext& aPresContext)
|
||||
{
|
||||
if (IsInline()) {
|
||||
const nsStyleSpacing* spacing =
|
||||
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||
nsStyleCoord leftBorder;
|
||||
spacing->mBorder.GetLeft(leftBorder);
|
||||
nsStyleUnit unit = leftBorder.GetUnit();
|
||||
if (eStyleUnit_Coord == unit) {
|
||||
return leftBorder.GetCoordValue();
|
||||
if (nsnull != mFirstChild) {
|
||||
if (eFrameborder_No != ((nsHTMLFrameInnerFrame*)mFirstChild)->GetFrameBorder(eCompatibility_Standard)) {
|
||||
const nsStyleSpacing* spacing =
|
||||
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||
nsStyleCoord leftBorder;
|
||||
spacing->mBorder.GetLeft(leftBorder);
|
||||
nsStyleUnit unit = leftBorder.GetUnit();
|
||||
if (eStyleUnit_Coord == unit) {
|
||||
return leftBorder.GetCoordValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
@ -209,13 +209,17 @@ nscoord
|
||||
nsHTMLFrameOuterFrame::GetBorderWidth(nsIPresContext& aPresContext)
|
||||
{
|
||||
if (IsInline()) {
|
||||
const nsStyleSpacing* spacing =
|
||||
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||
nsStyleCoord leftBorder;
|
||||
spacing->mBorder.GetLeft(leftBorder);
|
||||
nsStyleUnit unit = leftBorder.GetUnit();
|
||||
if (eStyleUnit_Coord == unit) {
|
||||
return leftBorder.GetCoordValue();
|
||||
if (nsnull != mFirstChild) {
|
||||
if (eFrameborder_No != ((nsHTMLFrameInnerFrame*)mFirstChild)->GetFrameBorder(eCompatibility_Standard)) {
|
||||
const nsStyleSpacing* spacing =
|
||||
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
|
||||
nsStyleCoord leftBorder;
|
||||
spacing->mBorder.GetLeft(leftBorder);
|
||||
nsStyleUnit unit = leftBorder.GetUnit();
|
||||
if (eStyleUnit_Coord == unit) {
|
||||
return leftBorder.GetCoordValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user