зеркало из https://github.com/mozilla/gecko-dev.git
Add patches from Bert Driehuis <driehuis@playbeing.org> These patches
make sure that the view is properly returned in all functions where it's supposed to be.
This commit is contained in:
Родитель
577c8f7f53
Коммит
0d3eb7f91b
|
@ -73,6 +73,7 @@ moz_bookmark_view_create(MozFrame *parent_frame,
|
|||
if (view == NULL) return NULL;
|
||||
|
||||
moz_bookmark_view_init(view, parent_frame, context);
|
||||
return view;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -215,4 +215,5 @@ moz_navcenter_view_create(MozFrame *parent_frame,
|
|||
if (view == NULL) return NULL;
|
||||
|
||||
moz_navcenter_view_init(view, parent_frame, context);
|
||||
return view;
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ find_editor_view(MWContext *context)
|
|||
|
||||
view = (MozEditorView*)moz_get_view_of_type(root,
|
||||
MOZ_TAG_EDITOR_VIEW);
|
||||
return view;
|
||||
}
|
||||
|
||||
MozHTMLView *
|
||||
|
@ -65,6 +66,7 @@ find_html_view(MWContext *context)
|
|||
|
||||
view = (MozHTMLView*)moz_get_view_of_type(root,
|
||||
MOZ_TAG_HTML_VIEW);
|
||||
return view;
|
||||
}
|
||||
|
||||
MozBookmarkView *
|
||||
|
@ -82,6 +84,7 @@ find_bookmark_view(MWContext *context)
|
|||
|
||||
view = (MozBookmarkView*)moz_get_view_of_type(root,
|
||||
MOZ_TAG_BOOKMARK_VIEW);
|
||||
return view;
|
||||
}
|
||||
|
||||
MozFrame*
|
||||
|
|
Загрузка…
Ссылка в новой задаче