Closed Bug 64423 Opened 25 years ago Closed 25 years ago

nsEventStateManager::ChangeTextSize can set negative textsizes

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 54963

People

(Reporter: sicking, Assigned: bryner)

Details

Attachments

(1 file)

If you use the mousewheel to decrease the textsize it is possible to reduce the size <= 0 causing strange behaviours. Unfortuantly my mousewheel dosn't work in linux but the the patch is really trivial: --- float textzoom; mv->GetTextZoom(&textzoom); - mv->SetTextZoom(textzoom + 0.1*change); + textzoom += 0.1*change; + if (textzoom > 0) + mv->SetTextZoom(textzoom); return NS_OK; } --- I'll attach a complete cvs diff
sorry, seems bryner@uiuc.edu is responsibel for this piece of code. Could you review
Assignee: joki → bryner
I think this is really a specific case of bug 54963 (we should probably come up with an upper bound as well). However, this patch is definitely ok. r=bryner.
Status: NEW → ASSIGNED
added patch that adds upper and lower bound that bug 54963 instead *** This bug has been marked as a duplicate of 54963 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
VERIFIED.
Status: RESOLVED → VERIFIED
transferring these to my netscape.com email.
Assignee: bryner → bryner
QA Contact: bugzilla → gerardok
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: