Closed Bug 1395979 Opened 7 years ago Closed 7 years ago

Remove backdrop hack in GetLayoutParentStyleForOutOfFlow

Categories

(Core :: CSS Parsing and Computation, enhancement)

53 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

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.
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 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
https://hg.mozilla.org/mozilla-central/rev/bb4e4b2b783d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: