Closed
Bug 95337
Opened 25 years ago
Closed 25 years ago
crop="right" and crop="left" should become start/end and honor 'direction'
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: hyatt, Assigned: hyatt)
References
Details
Attachments
(1 file)
Cropping should automatically reverse itself when the direction goes to rtl.
| Assignee | ||
Comment 2•25 years ago
|
||
Comment 3•25 years ago
|
||
Not that I have a clue about the rest of it, but ... this is a no-op?
+ if (vis->mDirection == NS_STYLE_DIRECTION_RTL)
+ (mCropStyle == 2) ? 0 : 2;
Comment 4•25 years ago
|
||
[s]r=ben@netscape.com with the "mCropStyle =" bit we discussed on IRC.
| Assignee | ||
Comment 5•25 years ago
|
||
Yes, nice catch jrgm. I was supposed to assign into mCropStyle.
Status: NEW → ASSIGNED
Comment 6•25 years ago
|
||
Why not save a branch, do 'mCropStyle = 2 - mCropStyle;' -- you've already
tested that mCropStyle is 0 or 2.
How about an NS_ASSERTION(frame, "disastrous!"); here?
+ if (!frame)
+ return; // This is disastrous.
Now I'm just picking nits. r=brendan@mozilla.org
/be
| Assignee | ||
Comment 7•25 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 8•25 years ago
|
||
There was a typo in the code that was checked in:
+ mCropStyle = mCropStyle - 2; // Right becomes left, left becomes right.
if mCropStyle was 0 mCropStyle becomes -2, should be "2 - mCropStyle".
Reopening so that it won't be forgotten.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•25 years ago
|
||
Wahhh, hyatt didn't do what I said!
/be
| Assignee | ||
Comment 10•25 years ago
|
||
forgive hyatt for messing up at 2 in the morning please. thanks. :)
| Assignee | ||
Comment 11•25 years ago
|
||
fixed.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: giladehven → layout.fonts-and-text
You need to log in
before you can comment on or make changes to this bug.
Description
•