Closed
Bug 419076
Opened 17 years ago
Closed 16 years ago
don't use the mLeftIsExact/mRightIsExact output from calculateHypotheticalBox
Categories
(Core :: Layout: Positioned, defect)
Core
Layout: Positioned
Tracking
()
RESOLVED
FIXED
mozilla1.9.1a1
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
Attachments
(1 file)
3.56 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
I think after bug 403328 lands, the mLeftIsExact / mRightIsExact outputs from nsHTMLReflowState::CalculateHypotheticalBox will become unneeded, although we may still want to assert about them in DEBUG builds.
If I'm wrong, however, I think there's a pretty major bug in the code that uses them, which is that the following change needs to be made:
// Well, we don't know 'left' so we have to use 'right' and
// then solve for 'left'
- mComputedOffsets.right = hypotheticalBox.mRight;
+ mComputedOffsets.right = containingBlockWidth - hypotheticalBox.mRight;
rightIsAuto = PR_FALSE;
since otherwise mComputedOffsets.right is in the wrong coordinate system!
Comment 1•17 years ago
|
||
So yeah. With the landing for bug 403328, it looks like mLeftIsExact is always true when the block containing the placeholder is LTR and mRightIsExact is true when it's RTL. So we can just remove those two else clauses: they're dead code.
Assignee | ||
Comment 2•17 years ago
|
||
Attachment #320060 -
Flags: superreview?
Attachment #320060 -
Flags: review?
Assignee | ||
Updated•17 years ago
|
Attachment #320060 -
Flags: superreview?(bzbarsky)
Attachment #320060 -
Flags: superreview?
Attachment #320060 -
Flags: review?(bzbarsky)
Attachment #320060 -
Flags: review?
Updated•17 years ago
|
Attachment #320060 -
Flags: superreview?(bzbarsky)
Attachment #320060 -
Flags: superreview+
Attachment #320060 -
Flags: review?(bzbarsky)
Attachment #320060 -
Flags: review+
Assignee | ||
Comment 3•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/index.cgi/rev/563e158fcce0
-> fixed (for 1.9.1)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → dbaron
Assignee | ||
Updated•16 years ago
|
Target Milestone: mozilla2.0 → mozilla1.9.1
Assignee | ||
Updated•16 years ago
|
Target Milestone: mozilla1.9.1 → mozilla1.9.1a1
You need to log in
before you can comment on or make changes to this bug.
Description
•