Closed Bug 189982 Opened 22 years ago Closed 19 years ago

automatic image resizing: state of the image should be kept after resizing the browser window

Categories

(Core :: Layout: Images, Video, and HTML Frames, enhancement, P5)

enhancement

Tracking

()

VERIFIED FIXED
mozilla1.8beta2

People

(Reporter: benjamin, Assigned: csthomas)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030121

the state of the image shouldn't change after resizing the browser window, ie 
if the image was restored to full size before resizing it shouldn't shrink back 
to the new size of the window but stay in full size.

Reproducible: Always

Steps to Reproduce:
Attached patch patch (obsolete) — Splinter Review
this patch achieves the suggested behaviour
To jan
Assignee: jdunn → varga
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #112187 - Flags: superreview?(jaggernaut)
Attachment #112187 - Flags: review?(varga)
Attached patch patch2 (obsolete) — Splinter Review
I already wanted to do this, but instead of additional boolean variable I
changed mImageIsResized to mImageState.
Attachment #112187 - Flags: superreview?(jaggernaut)
Attachment #112187 - Flags: review?(varga)
Attachment #112205 - Flags: superreview?(bzbarsky)
Attachment #112205 - Flags: review?(jaggernaut)
Attachment #112205 - Flags: superreview?(bzbarsky) → superreview+
Status: NEW → ASSIGNED
Keywords: nsbeta1
why not make mImageState an enum? gives more friendly names in debuggers...
Will include in patch for bug 73322
Blocks: autoresize
No longer blocks: autoresize
Scratch that. The patch in this bug will be building off the one in bug 190545
when its checked in.
Depends on: 190545
Comment on attachment 112205 [details] [diff] [review]
patch2

Actually, they will all be just included in the same patch.
Attachment #112205 - Attachment is obsolete: true
Oops, sorry about the incorrect setting. Sorry about all the SPAM. The problem 
is that I can't change some bug settings at the same time as others.
Blocks: 190545
No longer depends on: 190545
No longer blocks: 190545
Depends on: 190545
Erh... Is that last patch truly obsolete?
Jan recommended that we just include this patch in the patch on bug 190545
(which is about to be revised) since bug 190545 has some changes to the
underlying code this patch fixes.
Priority: -- → P3
Target Milestone: --- → mozilla1.4beta
Attached patch new patch (obsolete) — Splinter Review
now with an enum :)
Attachment #112187 - Attachment is obsolete: true
Attachment #120998 - Flags: superreview?(jaggernaut)
Attachment #120998 - Flags: review?(cbiesinger)
Attachment #112205 - Flags: review?(jaggernaut)
Comment on attachment 120998 [details] [diff] [review]
new patch

Hm... this does not do the right thing completely... 

If I enable automatic image resizing, and load say http://www.mozilla.org/ and
make my browser window smaller than the image, larger than the image and then
again smaller, the image is still shown in its original size and not resized.
this works without the patch.
Attachment #120998 - Flags: review?(cbiesinger) → review-
Comment on attachment 120998 [details] [diff] [review]
new patch

ok, this needs a completely different approach
Attachment #120998 - Attachment is obsolete: true
Attachment #120998 - Flags: superreview?(jaggernaut)
I'm still working on bug 190545, and this issue is still fixed in my latest code
for that bug (the current patch as of writing this is obsolete).
*** Bug 203174 has been marked as a duplicate of this bug. ***
adt: nsbeta1-
Keywords: nsbeta1nsbeta1-
*** Bug 203146 has been marked as a duplicate of this bug. ***
*** Bug 210359 has been marked as a duplicate of this bug. ***
Blocks: 190545
No longer depends on: 190545
I don't understand comment 12, but I think I can do something reasonable.
Assignee: jan → cst
Status: ASSIGNED → NEW
Priority: P3 → P5
QA Contact: tpreston → stephend
Target Milestone: mozilla1.4beta → mozilla1.8beta2
Attached patch patchSplinter Review
With this patch, resizing the window does not toggle scaling (if it was scaled
before, it continues to be scaled, and if it wasn't, it stays full size until
you click).
Attachment #178979 - Flags: superreview?(roc)
Attachment #178979 - Flags: review?(caillon)
Attachment #178979 - Flags: superreview?(roc) → superreview+
Attachment #178979 - Flags: review?(caillon) → review?(bzbarsky)
Comment on attachment 178979 [details] [diff] [review]
patch

>Index: content/html/document/src/nsImageDocument.cpp
>   PRPackedBool                  mImageIsResized;
>+  PRPackedBool                  mShouldResize;

Please document how the latter differs from the former, ok?

>+  PRBool wasResized = mImageIsResized;

That var looks unused.	Take that out?

With that, r=bzbarsky
Attachment #178979 - Flags: review?(bzbarsky) → review+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: r?
Verified that this Bug is fixed.
Version: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050409 Firefox/1.0+
Status: RESOLVED → VERIFIED
*** Bug 252437 has been marked as a duplicate of this bug. ***
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: