mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1480 - Skip abspos, fixed, float and placeholders for outline.
This commit is contained in:
parent
efb161c255
commit
4bf8981093
1 changed files with 12 additions and 2 deletions
|
|
@ -8434,9 +8434,13 @@ UnionBorderBoxes(nsIFrame* aFrame, bool aApplyTransform,
|
|||
Maybe<nsRect> clipPropClipRect =
|
||||
aFrame->GetClipPropClipRect(disp, effects, bounds.Size());
|
||||
|
||||
// Iterate over all children except pop-ups.
|
||||
// Iterate over all children except pop-ups, absolutely positioned children,
|
||||
// fixed-positioned children and floats.
|
||||
const nsIFrame::ChildListIDs skip(nsIFrame::kPopupList |
|
||||
nsIFrame::kSelectPopupList);
|
||||
nsIFrame::kSelectPopupList |
|
||||
nsIFrame::kAbsoluteList |
|
||||
nsIFrame::kFixedList |
|
||||
nsIFrame::kFloatList);
|
||||
for (nsIFrame::ChildListIterator childLists(aFrame);
|
||||
!childLists.IsDone(); childLists.Next()) {
|
||||
if (skip.Contains(childLists.CurrentID())) {
|
||||
|
|
@ -8446,6 +8450,12 @@ UnionBorderBoxes(nsIFrame* aFrame, bool aApplyTransform,
|
|||
nsFrameList children = childLists.CurrentList();
|
||||
for (nsFrameList::Enumerator e(children); !e.AtEnd(); e.Next()) {
|
||||
nsIFrame* child = e.get();
|
||||
|
||||
if (child->GetType() == nsGkAtoms::placeholderFrame) {
|
||||
// Skip placeholders too.
|
||||
continue;
|
||||
}
|
||||
|
||||
// Note that passing |true| for aApplyTransform when
|
||||
// child->Combines3DTransformWithAncestors() is incorrect if our
|
||||
// aApplyTransform is false... but the opposite would be as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue