Closed
Bug 901610
Opened 13 years ago
Closed 13 years ago
Various uses of nsStyleDisplay::IsRelativelyPositioned
Categories
(Core :: Layout: Positioned, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: coyotebush, Assigned: coyotebush)
References
Details
Attachments
(2 files, 4 obsolete files)
|
1.36 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
|
2.06 KB,
patch
|
coyotebush
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #785863 -
Flags: review?(dbaron)
| Assignee | ||
Comment 2•13 years ago
|
||
Attachment #785864 -
Flags: review?(dbaron)
| Assignee | ||
Comment 3•13 years ago
|
||
Naturally, these will let position:sticky be acceptable in these locations (in combination with patch 2 from bug 886646).
A probably unnecessary try push: https://tbpl.mozilla.org/?tree=Try&rev=3ace7b5e825c
| Assignee | ||
Comment 4•13 years ago
|
||
In ConstructInline, apparently aDisplay doesn't correspond to aParentFrame, so IsRelativelyPositioned was throwing assertions. Back to checking IsSVGText separately.
Attachment #785980 -
Flags: review?(dbaron)
| Assignee | ||
Updated•13 years ago
|
Attachment #785863 -
Attachment is obsolete: true
Attachment #785863 -
Flags: review?(dbaron)
| Assignee | ||
Updated•13 years ago
|
Attachment #785864 -
Flags: review?(dbaron)
| Assignee | ||
Updated•13 years ago
|
Attachment #785980 -
Flags: review?(dbaron)
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #787040 -
Flags: review?(dbaron)
| Assignee | ||
Updated•13 years ago
|
Attachment #785980 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•13 years ago
|
||
Code style tweaks to both patches.
Attachment #787042 -
Flags: review?(dbaron)
| Assignee | ||
Updated•13 years ago
|
Attachment #785864 -
Attachment is obsolete: true
Comment on attachment 787040 [details] [diff] [review]
Use nsStyleDisplay::IsRelativelyPositioned in constructing frames for IB splits.
> const nsStyleDisplay* parentDisplay = aParentFrame->StyleDisplay();
>- bool positioned =
>- parentDisplay->mPosition == NS_STYLE_POSITION_RELATIVE &&
>- !aParentFrame->IsSVGText();
>+ bool positioned = parentDisplay->IsRelativelyPositioned(aParentFrame);
Drop |parentDisplay| too, and just use:
bool positioned = aParentFrame->IsRelativelyPositioned();
r=dbaron with that
Attachment #787040 -
Flags: review?(dbaron) → review+
Comment on attachment 787042 [details] [diff] [review]
Use nsStyleDisplay::IsRelativelyPositionedStyle in nsLineLayout.
r=dbaron
Attachment #787042 -
Flags: review?(dbaron) → review+
| Assignee | ||
Comment 9•13 years ago
|
||
That's even better.
| Assignee | ||
Updated•13 years ago
|
Attachment #787040 -
Attachment is obsolete: true
| Assignee | ||
Updated•13 years ago
|
Attachment #787204 -
Flags: review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 10•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5323a7470f67
https://hg.mozilla.org/integration/mozilla-inbound/rev/7773265feff1
Keywords: checkin-needed
Comment 11•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5323a7470f67
https://hg.mozilla.org/mozilla-central/rev/7773265feff1
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•