bug 97580 back out the original patch for this bug, since it's not necessary

anymore and breaks plugins
patch by chpe@gnome.org r=blizzard sr=roc
This commit is contained in:
cbiesinger%web.de 2005-08-13 11:58:00 +00:00
Родитель d25f538cf6
Коммит aaca860bc9
3 изменённых файлов: 1 добавлений и 15 удалений

Просмотреть файл

@ -336,13 +336,6 @@ EmbedPrivate::Resize(PRUint32 aWidth, PRUint32 aHeight)
0, 0, aWidth, aHeight);
}
void
EmbedPrivate::GetSize(PRInt32 *aWidth, PRInt32 *aHeight)
{
mWindow->GetDimensions(nsIEmbeddingSiteWindow::DIM_FLAGS_SIZE_INNER,
nsnull, nsnull, aWidth, aHeight);
}
void
EmbedPrivate::Destroy(void)
{

Просмотреть файл

@ -78,7 +78,6 @@ class EmbedPrivate {
void Show (void);
void Hide (void);
void Resize (PRUint32 aWidth, PRUint32 aHeight);
void GetSize (PRInt32 *aWidth, PRInt32 *aHeight);
void Destroy (void);
void SetURI (const char *aURI);
void LoadCurrentURI (void);

Просмотреть файл

@ -708,16 +708,10 @@ gtk_moz_embed_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
if (GTK_WIDGET_REALIZED(widget))
{
PRInt32 width, height;
embedPrivate->GetSize (&width, &height);
gdk_window_move_resize(widget->window,
allocation->x, allocation->y,
allocation->width, allocation->height);
if ((allocation->width != width) || (allocation->height != height))
embedPrivate->Resize(allocation->width, allocation->height);
embedPrivate->Resize(allocation->width, allocation->height);
}
}