mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00
Fix for Aurora custom icons. Reviewed by Nisheeth and DP.
This commit is contained in:
parent
b36b38d00b
commit
7a983a5745
@ -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 */
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user