Fix for Aurora custom icons. Reviewed by Nisheeth and DP.

This commit is contained in:
hyatt%netscape.com 1998-09-11 22:24:27 +00:00
parent b36b38d00b
commit 7a983a5745
2 changed files with 4 additions and 2 deletions

View File

@ -2111,7 +2111,7 @@ lo_FormatImage(MWContext *context, lo_DocState *state, PA_Tag *tag)
* when the front end can give us the width and height.
*/
if (((image->width == 0)||(image->height == 0))
&& EDT_IS_EDITOR(context))
&& (EDT_IS_EDITOR(context)))
{
/* If a lowres image has been specified, we'll actually be
blocking on that, not the real (hires) url */

View File

@ -5758,7 +5758,9 @@ lo_process_deferred_image_info(void *closure)
{
lo_TopState* top_state = lo_FetchTopState(XP_DOCID(c->context));
PR_ASSERT(top_state);
if (top_state) {
/* Do not perform reflow for Aurora custom icons (MWContextIcon) */
if (top_state && (c->context->type != MWContextIcon)) {
int32 docWidth = LO_GetLayerScrollWidth(top_state->body_layer);
int32 docHeight = LO_GetLayerScrollHeight(top_state->body_layer);
int32 docX, docY;