Backed out changeset 956306ea34f3 (bug 1350633)
This commit is contained in:
@@ -1189,14 +1189,10 @@ PuppetWidget::GetNativeData(uint32_t aDataType)
|
||||
{
|
||||
switch (aDataType) {
|
||||
case NS_NATIVE_SHAREABLE_WINDOW: {
|
||||
// NOTE: We can not have a tab child in some situations, such as when we're
|
||||
// rendering to a fake widget for thumbnails.
|
||||
if (!mTabChild) {
|
||||
NS_WARNING("Need TabChild to get the nativeWindow from!");
|
||||
}
|
||||
MOZ_ASSERT(mTabChild, "Need TabChild to get the nativeWindow from!");
|
||||
mozilla::WindowsHandle nativeData = 0;
|
||||
if (mTabChild) {
|
||||
nativeData = mTabChild->WidgetNativeData();
|
||||
mTabChild->SendGetWidgetNativeData(&nativeData);
|
||||
}
|
||||
return (void*)nativeData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user