mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 06:17:30 +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 =
|
Maybe<nsRect> clipPropClipRect =
|
||||||
aFrame->GetClipPropClipRect(disp, effects, bounds.Size());
|
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 |
|
const nsIFrame::ChildListIDs skip(nsIFrame::kPopupList |
|
||||||
nsIFrame::kSelectPopupList);
|
nsIFrame::kSelectPopupList |
|
||||||
|
nsIFrame::kAbsoluteList |
|
||||||
|
nsIFrame::kFixedList |
|
||||||
|
nsIFrame::kFloatList);
|
||||||
for (nsIFrame::ChildListIterator childLists(aFrame);
|
for (nsIFrame::ChildListIterator childLists(aFrame);
|
||||||
!childLists.IsDone(); childLists.Next()) {
|
!childLists.IsDone(); childLists.Next()) {
|
||||||
if (skip.Contains(childLists.CurrentID())) {
|
if (skip.Contains(childLists.CurrentID())) {
|
||||||
|
|
@ -8446,6 +8450,12 @@ UnionBorderBoxes(nsIFrame* aFrame, bool aApplyTransform,
|
||||||
nsFrameList children = childLists.CurrentList();
|
nsFrameList children = childLists.CurrentList();
|
||||||
for (nsFrameList::Enumerator e(children); !e.AtEnd(); e.Next()) {
|
for (nsFrameList::Enumerator e(children); !e.AtEnd(); e.Next()) {
|
||||||
nsIFrame* child = e.get();
|
nsIFrame* child = e.get();
|
||||||
|
|
||||||
|
if (child->GetType() == nsGkAtoms::placeholderFrame) {
|
||||||
|
// Skip placeholders too.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Note that passing |true| for aApplyTransform when
|
// Note that passing |true| for aApplyTransform when
|
||||||
// child->Combines3DTransformWithAncestors() is incorrect if our
|
// child->Combines3DTransformWithAncestors() is incorrect if our
|
||||||
// aApplyTransform is false... but the opposite would be as
|
// aApplyTransform is false... but the opposite would be as
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue