Closed
Bug 1395979
Opened 8 years ago
Closed 8 years ago
Remove backdrop hack in GetLayoutParentStyleForOutOfFlow
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(1 file)
|
1.97 KB,
patch
|
xidorn
:
review+
|
Details | Diff | Splinter Review |
This was apparently added back when this function was called nsPlaceholderFrame::GetParentStyleContext, which was back when placeholders had style contexts parented to something. Now that placeholders are non-inheriting, we don't need this code anymore.
| Assignee | ||
Comment 1•8 years ago
|
||
This was never even meant to apply to the out-of-flow, just to the placeholder
itself. So it's been effectively dead since placeholders stopped inheriting
from another style context.
Attachment #8903625 -
Flags: review?(xidorn+moz)
Comment 2•8 years ago
|
||
Comment on attachment 8903625 [details] [diff] [review]
Remove backdrop hackery from placeholder's GetLayoutParentStyleForOutOfFlow
Review of attachment 8903625 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/generic/nsPlaceholderFrame.cpp
@@ +208,5 @@
>
> nsStyleContext*
> nsPlaceholderFrame::GetLayoutParentStyleForOutOfFlow(nsIFrame** aProviderFrame) const
> {
> nsIFrame* parentFrame = GetParent();
You can now replace the only use of parentFrame below with GetParent() directly, so that this variable is no longer needed.
Attachment #8903625 -
Flags: review?(xidorn+moz) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bb4e4b2b783d
Remove backdrop hackery from placeholder's GetLayoutParentStyleForOutOfFlow. r=xidorn
Comment 4•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•