diff --git a/widget/src/windows/nsNativeThemeWin.cpp b/widget/src/windows/nsNativeThemeWin.cpp index 5e3e1e4bcdfe..cad94d157597 100644 --- a/widget/src/windows/nsNativeThemeWin.cpp +++ b/widget/src/windows/nsNativeThemeWin.cpp @@ -893,12 +893,10 @@ nsNativeThemeWin::GetThemePartAndState(nsIFrame* aFrame, PRUint8 aWidgetType, SP_GRIPPERHOR : SP_GRIPPERVERT; if (!aFrame) aState = TS_NORMAL; - else if (IsDisabled(aFrame)) + else if (IsDisabled(aFrame->GetParent())) aState = TS_DISABLED; else { - // XXXdwh The gripper needs to get a hover attribute set on it, since it - // never goes into :hover. - PRInt32 eventState = GetContentState(aFrame, aWidgetType); + PRInt32 eventState = GetContentState(aFrame->GetParent(), aWidgetType); if (eventState & NS_EVENT_STATE_ACTIVE) // Hover is not also a requirement for // the gripper, since the drag is not canceled // when you move outside the gripper.