Closed
Bug 145467
Opened 23 years ago
Closed 22 years ago
nsLineBox always have mBounds.x == 0 (zero), even when the a short line is right aligned.
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: esben, Assigned: dbaron)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
BuildID: 2002051009
When attempting to fix bug 1777, I found that querying nsLineBox.mBounds.x
always returned zero, even when the origin of the first child was not (0,y).
E.g., with a small line right aligned as in
http://bugzilla.mozilla.org/attachment.cgi?id=81294&action=view , the lineBox
has mBounds=(0,y,width,height). This should IMHO be (x,y,width,height). In other
words, mBounds.x should equal firts child's Origins x-value.
Reproducible: Always
Steps to Reproduce:
1.Modify code to print out the LineBox's mBounds.x value, e.g. while
nsBlockFrame is Paint()'ing them.
2.compile & run
3.View the above testcase
Actual Results: The value printed is 0
Expected Results: The value should be somewhat large, and positive (dependent
on resolution among other things)
If bug1777 checks in with my patch before this is corrected,
nsBlockFrame::PaintTextDecorationLines should be recorrected to use the
mBounds.x value.
Updated•23 years ago
|
Priority: -- → P3
Target Milestone: --- → Future
Comment 1•23 years ago
|
||
This isn't the way line layout works.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•23 years ago
|
||
Care to elaborate just a tiny bit? Otherwise David Baron will keep asking me why
I don't use the mBounds.x value. :o) It seems strange to me (and others) that a
member variable is identically zero at all times.
Assignee | ||
Comment 3•23 years ago
|
||
Well, if we combined the not-ifdef-IBMBIDI way of calling
nsLineLayout::HorizontalAlignFrames with the ifdef-IBMBIDI code inside of it,
this is the way line layout would work. I really can't stand what bidi did to
that function (see bug 131023).
Reporter | ||
Comment 4•23 years ago
|
||
Well in that case, I think it should be fixed. I'm willing to give a hand, if
that helps.... anyways, moving over to bug 131023. Should this bug be marked as
dependant on bug 131023?
Assignee | ||
Comment 6•22 years ago
|
||
Fixed by the checkin to bug 131023.
Assignee: attinasi → dbaron
Status: REOPENED → NEW
Assignee | ||
Comment 7•22 years ago
|
||
Marking fixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•