Closed
Bug 57006
Opened 25 years ago
Closed 25 years ago
Incorrect hardcoded number in nsCaret.cpp causes bad cursor widths
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: mkaply, Assigned: mjudge)
Details
Attachments
(2 files)
854 bytes,
patch
|
Details | Diff | Splinter Review | |
1.06 KB,
patch
|
Details | Diff | Splinter Review |
In nscaret.cpp:
http://lxr.mozilla.org/seamonkey/source/layout/base/src/nsCaret.cpp#745
mCaretTwipsWidth = 15 * mCaretPixelsWidth;//uhhhh...
Is incorrect.
15 should not be hardcoded.
That 15 is actually the DevUnitstoAppUnits value and should be queried from the
Device Context.
Reporter | ||
Comment 2•25 years ago
|
||
Reporter | ||
Comment 3•25 years ago
|
||
Should I have set dx to nsnull at the end of that to free the pointer?
Comment 4•25 years ago
|
||
I suggest
presContext->GetDeviceContext(getter_AddRefs(dx));
if ( dx )
dx->GetDevUnitsToTwips(tDevUnitsToTwips);
for the middle hunk. I think it's clearer.
Reporter | ||
Comment 7•25 years ago
|
||
OK, this one is getting too old.
We need this fix.
Copying brendan.
Comment 8•25 years ago
|
||
Can you attach a patch based on scc's comments? Then buster or waterson could
give an sr= (mail 'em, cc: reviewers -- I didn't see a posting from you there
on this bug).
/be
Reporter | ||
Comment 9•25 years ago
|
||
Comment 10•25 years ago
|
||
mjudge, can you add an r= to scc's contingent one? Thanks.
/be
Assignee | ||
Comment 11•25 years ago
|
||
hmm sfraser should really get this one. i will CC him only since a fix is ready.
r= mjudge. code looks clean. i have not added this and tested it myself yet
(build still working) but it certainly looks good. i will update when i have
actually run with it, but you can check it in before then on r=mjudge.
Comment 12•25 years ago
|
||
sr=sfraser on the patch
Reporter | ||
Comment 13•25 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•