Closed Bug 509895 Opened 15 years ago Closed 15 years ago

don't clear GtkWidget pointer from MozContainer's GdkWindow

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: karlt, Assigned: karlt)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Attachment 390626 [details] [diff] changed container nsWindows to reuse the GdkWindow from the MozContainer GtkWidget instead of creating another child GdkWindow. When the container GtkWidget is unrealized its descendant GdkWindows are removed from the GtkWidget (because the hierarchy is destroyed) by setting the GdkWindow's pointer to the GtkWidget to NULL. Previously nsWindow::OnContainerUnrealize() would remove the descendant GdkWindows and the GtkWidget would remove its own GdkWindow. Now, when mGdkWindow belongs to a GtkWidget (no longer a child of the GtkWidget's GdkWindow), we should not set mGdkWindow's widget to NULL, but let the GtkWidget do that. (The nsWindow can still set the "nsWindow" data on the MozContainer's GdkWindow because it is the nsWindow that set and uses this data.)
This would also be resolved by attachment 409402 [details] [diff] [review].
Depends on: 522635
Fixed in bug 522635.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: