From d87392317eab2114abd0921df1548e6bd955cbe0 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Mon, 7 Dec 1998 18:53:07 +0000 Subject: [PATCH] Changed all the places that previously accessed mBorderStyle and mBorderColor with the new methods added in nsStyleSpacing --- layout/generic/nsImageFrame.cpp | 19 +++++++++++-------- layout/html/base/src/nsImageFrame.cpp | 19 +++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index 6f4f5f4babee..6d6dbb27fc0d 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -571,14 +571,17 @@ struct nsRecessedBorder : public nsStyleSpacing { mBorder.SetTop(styleCoord); mBorder.SetRight(styleCoord); mBorder.SetBottom(styleCoord); - mBorderStyle[0] = NS_STYLE_BORDER_STYLE_INSET; - mBorderStyle[1] = NS_STYLE_BORDER_STYLE_INSET; - mBorderStyle[2] = NS_STYLE_BORDER_STYLE_INSET; - mBorderStyle[3] = NS_STYLE_BORDER_STYLE_INSET; - mBorderColor[0] = 0; - mBorderColor[1] = 0; - mBorderColor[2] = 0; - mBorderColor[3] = 0; + + mBorderStyle[0] = NS_STYLE_BORDER_STYLE_INSET; + mBorderStyle[1] = NS_STYLE_BORDER_STYLE_INSET; + mBorderStyle[2] = NS_STYLE_BORDER_STYLE_INSET; + mBorderStyle[3] = NS_STYLE_BORDER_STYLE_INSET; + + mBorderColor[0] = 0; + mBorderColor[1] = 0; + mBorderColor[2] = 0; + mBorderColor[3] = 0; + mHasCachedMargin = mHasCachedPadding = mHasCachedBorder = PR_FALSE; } }; diff --git a/layout/html/base/src/nsImageFrame.cpp b/layout/html/base/src/nsImageFrame.cpp index 6f4f5f4babee..6d6dbb27fc0d 100644 --- a/layout/html/base/src/nsImageFrame.cpp +++ b/layout/html/base/src/nsImageFrame.cpp @@ -571,14 +571,17 @@ struct nsRecessedBorder : public nsStyleSpacing { mBorder.SetTop(styleCoord); mBorder.SetRight(styleCoord); mBorder.SetBottom(styleCoord); - mBorderStyle[0] = NS_STYLE_BORDER_STYLE_INSET; - mBorderStyle[1] = NS_STYLE_BORDER_STYLE_INSET; - mBorderStyle[2] = NS_STYLE_BORDER_STYLE_INSET; - mBorderStyle[3] = NS_STYLE_BORDER_STYLE_INSET; - mBorderColor[0] = 0; - mBorderColor[1] = 0; - mBorderColor[2] = 0; - mBorderColor[3] = 0; + + mBorderStyle[0] = NS_STYLE_BORDER_STYLE_INSET; + mBorderStyle[1] = NS_STYLE_BORDER_STYLE_INSET; + mBorderStyle[2] = NS_STYLE_BORDER_STYLE_INSET; + mBorderStyle[3] = NS_STYLE_BORDER_STYLE_INSET; + + mBorderColor[0] = 0; + mBorderColor[1] = 0; + mBorderColor[2] = 0; + mBorderColor[3] = 0; + mHasCachedMargin = mHasCachedPadding = mHasCachedBorder = PR_FALSE; } };