mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
fix UMRs as reported by the great and powerful bruce. this closes bug 10625.
This commit is contained in:
parent
a71748f63e
commit
1a3600fea2
@ -260,6 +260,8 @@ void nsScrollbar::CreateNative(Window aParent, nsRect aRect)
|
||||
|
||||
NS_IMETHODIMP nsScrollbar::Show(PRBool bState)
|
||||
{
|
||||
PR_LOG(XlibScrollbarLM, PR_LOG_DEBUG, ("nsScrollbar::Show(): %s\n",
|
||||
(bState == PR_TRUE) ? "true" : "false"));
|
||||
nsWidget::Show(bState);
|
||||
if (bState) {
|
||||
if (mBar) {
|
||||
@ -314,6 +316,8 @@ nsresult nsScrollbar::NextPage(void)
|
||||
sevent.widget = (nsWidget *)this;
|
||||
sevent.eventStructType = NS_SCROLLBAR_EVENT;
|
||||
sevent.position = (mPosition);
|
||||
sevent.point.x = 0;
|
||||
sevent.point.y = 0;
|
||||
// send the event
|
||||
result = ConvertStatus((*mEventCallback) (&sevent));
|
||||
// the gtk code indicates that the callback can
|
||||
|
@ -76,6 +76,7 @@ nsWidget::nsWidget() : nsBaseWidget()
|
||||
|
||||
mBaseWindow = 0;
|
||||
mBackground = NS_RGB(192, 192, 192);
|
||||
mBorderRGB = NS_RGB(192, 192, 192);
|
||||
mBackgroundPixel = xlib_rgb_xpixel_from_rgb(mBackground);
|
||||
mBackground = NS_RGB(192, 192, 192);
|
||||
mBorderPixel = xlib_rgb_xpixel_from_rgb(mBorderRGB);
|
||||
|
@ -26,7 +26,7 @@ nsWindow::nsWindow() : nsWidget()
|
||||
mName = "nsWindow";
|
||||
mBackground = NS_RGB(255, 255, 255);
|
||||
mBackgroundPixel = xlib_rgb_xpixel_from_rgb(mBackground);
|
||||
mBackground = NS_RGB(255, 255, 255);
|
||||
mBorderRGB = NS_RGB(255,255,255);
|
||||
mBorderPixel = xlib_rgb_xpixel_from_rgb(mBorderRGB);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user