mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
fix border style setting
This commit is contained in:
parent
8526f7756e
commit
6f87f14c94
@ -1039,7 +1039,7 @@ PRBool nsWidget::DispatchFocus(nsGUIEvent &aEvent)
|
||||
#undef TRACE_EVENTS_PAINT
|
||||
#undef TRACE_EVENTS_CROSSING
|
||||
|
||||
#if defined(DEBUG_mcafee) || defined(DEBUG_pavlov)
|
||||
#if defined(DEBUG_mcafee) || !defined(DEBUG_pavlov)
|
||||
#define TRACE_EVENTS 1
|
||||
#define TRACE_EVENTS_MOTION 1
|
||||
#define TRACE_EVENTS_PAINT 1
|
||||
|
@ -246,9 +246,9 @@ static guint n_targets = sizeof(target_table) / sizeof(target_table[0]);
|
||||
|
||||
GdkWMDecoration nsWindow::ConvertBorderStyles(nsBorderStyle bs)
|
||||
{
|
||||
GdkWMDecoration w;
|
||||
GdkWMDecoration w = eBorderStyle_none; // eBorderStyle_none == 0
|
||||
|
||||
if (bs & eBorderStyle_default)
|
||||
if (bs == eBorderStyle_default)
|
||||
return -1;
|
||||
|
||||
if (bs & eBorderStyle_all)
|
||||
@ -353,8 +353,6 @@ NS_METHOD nsWindow::CreateNative(GtkWidget *parentWidget)
|
||||
|
||||
if (mIsToplevel)
|
||||
{
|
||||
|
||||
|
||||
if (parentWidget)
|
||||
{
|
||||
GtkWidget *tlw = gtk_widget_get_toplevel(parentWidget);
|
||||
@ -772,7 +770,7 @@ NS_METHOD nsWindow::Resize(PRUint32 aX, PRUint32 aY, PRUint32 aWidth,
|
||||
|
||||
NS_METHOD nsWindow::Invalidate(PRBool aIsSynchronous)
|
||||
{
|
||||
#ifndef DEBUG_pavlov
|
||||
#if 0
|
||||
g_print(" nsWindow::Invalidate(nr) (this=%p , aIsSynchronous=%i)\n",
|
||||
this, aIsSynchronous);
|
||||
#endif
|
||||
@ -814,7 +812,7 @@ NS_METHOD nsWindow::Invalidate(PRBool aIsSynchronous)
|
||||
|
||||
NS_METHOD nsWindow::Invalidate(const nsRect & aRect, PRBool aIsSynchronous)
|
||||
{
|
||||
#ifndef DEBUG_pavlov
|
||||
#if 0
|
||||
g_print(" nsWindow::Invalidate(wr) (this=%p, x=%i , y=%i , width=%i , height = %i , aIsSynchronous=%i)\n",
|
||||
this, aRect.x, aRect.y, aRect.width, aRect.height, aIsSynchronous);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user