Fix windows bustage. b=241304

git-svn-id: svn://10.0.0.236/trunk@155350 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2004-04-22 20:58:32 +00:00
parent 1780f26add
commit 0f9dcd84d2
2 changed files with 4 additions and 2 deletions

View File

@@ -657,7 +657,8 @@ nsGfxScrollFrame::GetScrollbarStyles() const
PRUint8 overflow;
if (GetParent() && GetParent()->GetType() == nsLayoutAtoms::viewportFrame &&
// Make sure we're actually the root scrollframe
GetParent()->GetFirstChild(nsnull) == this) {
GetParent()->GetFirstChild(nsnull) ==
NS_STATIC_CAST(const nsIFrame*, this)) {
overflow = GetPresContext()->GetViewportOverflowOverride();
} else {
overflow = GetStyleDisplay()->mOverflow;

View File

@@ -657,7 +657,8 @@ nsGfxScrollFrame::GetScrollbarStyles() const
PRUint8 overflow;
if (GetParent() && GetParent()->GetType() == nsLayoutAtoms::viewportFrame &&
// Make sure we're actually the root scrollframe
GetParent()->GetFirstChild(nsnull) == this) {
GetParent()->GetFirstChild(nsnull) ==
NS_STATIC_CAST(const nsIFrame*, this)) {
overflow = GetPresContext()->GetViewportOverflowOverride();
} else {
overflow = GetStyleDisplay()->mOverflow;