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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user