forked from mirrors/gecko-dev
Bug 1866384 - remove unused or obsolete code r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194582
This commit is contained in:
parent
9d203b1d46
commit
b24a3ddc8f
5 changed files with 1 additions and 12 deletions
|
|
@ -1351,7 +1351,6 @@ Document::Document(const char* aContentType)
|
||||||
mIsSVGGlyphsDocument(false),
|
mIsSVGGlyphsDocument(false),
|
||||||
mInDestructor(false),
|
mInDestructor(false),
|
||||||
mIsGoingAway(false),
|
mIsGoingAway(false),
|
||||||
mInXBLUpdate(false),
|
|
||||||
mStyleSetFilled(false),
|
mStyleSetFilled(false),
|
||||||
mQuirkSheetAdded(false),
|
mQuirkSheetAdded(false),
|
||||||
mContentEditableSheetAdded(false),
|
mContentEditableSheetAdded(false),
|
||||||
|
|
|
||||||
|
|
@ -4684,8 +4684,6 @@ class Document : public nsINode,
|
||||||
// True if the document has been detached from its content viewer.
|
// True if the document has been detached from its content viewer.
|
||||||
bool mIsGoingAway : 1;
|
bool mIsGoingAway : 1;
|
||||||
|
|
||||||
bool mInXBLUpdate : 1;
|
|
||||||
|
|
||||||
// Whether we have filled our style set with all the stylesheets.
|
// Whether we have filled our style set with all the stylesheets.
|
||||||
bool mStyleSetFilled : 1;
|
bool mStyleSetFilled : 1;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ NS_IMPL_CYCLE_COLLECTION_CLASS(SVGUseElement)
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(SVGUseElement,
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(SVGUseElement,
|
||||||
SVGUseElementBase)
|
SVGUseElementBase)
|
||||||
nsAutoScriptBlocker scriptBlocker;
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mOriginal)
|
NS_IMPL_CYCLE_COLLECTION_UNLINK(mOriginal)
|
||||||
tmp->UnlinkSource();
|
tmp->UnlinkSource();
|
||||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
||||||
|
|
@ -118,7 +117,6 @@ void SVGUseElement::ProcessAttributeChange(int32_t aNamespaceID,
|
||||||
if (auto* frame = GetFrame()) {
|
if (auto* frame = GetFrame()) {
|
||||||
frame->HrefChanged();
|
frame->HrefChanged();
|
||||||
}
|
}
|
||||||
mOriginal = nullptr;
|
|
||||||
UnlinkSource();
|
UnlinkSource();
|
||||||
TriggerReclone();
|
TriggerReclone();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ NS_IMPL_FRAMEARENA_HELPERS(SVGForeignObjectFrame)
|
||||||
|
|
||||||
SVGForeignObjectFrame::SVGForeignObjectFrame(ComputedStyle* aStyle,
|
SVGForeignObjectFrame::SVGForeignObjectFrame(ComputedStyle* aStyle,
|
||||||
nsPresContext* aPresContext)
|
nsPresContext* aPresContext)
|
||||||
: nsContainerFrame(aStyle, aPresContext, kClassID), mInReflow(false) {
|
: nsContainerFrame(aStyle, aPresContext, kClassID) {
|
||||||
AddStateBits(NS_FRAME_REFLOW_ROOT | NS_FRAME_MAY_BE_TRANSFORMED |
|
AddStateBits(NS_FRAME_REFLOW_ROOT | NS_FRAME_MAY_BE_TRANSFORMED |
|
||||||
NS_FRAME_SVG_LAYOUT | NS_FRAME_FONT_INFLATION_CONTAINER |
|
NS_FRAME_SVG_LAYOUT | NS_FRAME_FONT_INFLATION_CONTAINER |
|
||||||
NS_FRAME_FONT_INFLATION_FLOW_ROOT);
|
NS_FRAME_FONT_INFLATION_FLOW_ROOT);
|
||||||
|
|
@ -412,8 +412,6 @@ void SVGForeignObjectFrame::DoReflow() {
|
||||||
UniquePtr<gfxContext> renderingContext =
|
UniquePtr<gfxContext> renderingContext =
|
||||||
presContext->PresShell()->CreateReferenceRenderingContext();
|
presContext->PresShell()->CreateReferenceRenderingContext();
|
||||||
|
|
||||||
mInReflow = true;
|
|
||||||
|
|
||||||
WritingMode wm = kid->GetWritingMode();
|
WritingMode wm = kid->GetWritingMode();
|
||||||
ReflowInput reflowInput(presContext, kid, renderingContext.get(),
|
ReflowInput reflowInput(presContext, kid, renderingContext.get(),
|
||||||
LogicalSize(wm, ISize(wm), NS_UNCONSTRAINEDSIZE));
|
LogicalSize(wm, ISize(wm), NS_UNCONSTRAINEDSIZE));
|
||||||
|
|
@ -438,8 +436,6 @@ void SVGForeignObjectFrame::DoReflow() {
|
||||||
"unexpected size");
|
"unexpected size");
|
||||||
FinishReflowChild(kid, presContext, desiredSize, &reflowInput, 0, 0,
|
FinishReflowChild(kid, presContext, desiredSize, &reflowInput, 0, 0,
|
||||||
ReflowChildFlags::NoMoveFrame);
|
ReflowChildFlags::NoMoveFrame);
|
||||||
|
|
||||||
mInReflow = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SVGForeignObjectFrame::AppendDirectlyOwnedAnonBoxes(
|
void SVGForeignObjectFrame::AppendDirectlyOwnedAnonBoxes(
|
||||||
|
|
|
||||||
|
|
@ -93,8 +93,6 @@ class SVGForeignObjectFrame final : public nsContainerFrame,
|
||||||
bool IsDisabled() const { return mRect.width <= 0 || mRect.height <= 0; }
|
bool IsDisabled() const { return mRect.width <= 0 || mRect.height <= 0; }
|
||||||
|
|
||||||
UniquePtr<gfxMatrix> mCanvasTM;
|
UniquePtr<gfxMatrix> mCanvasTM;
|
||||||
|
|
||||||
bool mInReflow;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue