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),
|
||||
mInDestructor(false),
|
||||
mIsGoingAway(false),
|
||||
mInXBLUpdate(false),
|
||||
mStyleSetFilled(false),
|
||||
mQuirkSheetAdded(false),
|
||||
mContentEditableSheetAdded(false),
|
||||
|
|
|
|||
|
|
@ -4684,8 +4684,6 @@ class Document : public nsINode,
|
|||
// True if the document has been detached from its content viewer.
|
||||
bool mIsGoingAway : 1;
|
||||
|
||||
bool mInXBLUpdate : 1;
|
||||
|
||||
// Whether we have filled our style set with all the stylesheets.
|
||||
bool mStyleSetFilled : 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ NS_IMPL_CYCLE_COLLECTION_CLASS(SVGUseElement)
|
|||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(SVGUseElement,
|
||||
SVGUseElementBase)
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mOriginal)
|
||||
tmp->UnlinkSource();
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
||||
|
|
@ -118,7 +117,6 @@ void SVGUseElement::ProcessAttributeChange(int32_t aNamespaceID,
|
|||
if (auto* frame = GetFrame()) {
|
||||
frame->HrefChanged();
|
||||
}
|
||||
mOriginal = nullptr;
|
||||
UnlinkSource();
|
||||
TriggerReclone();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ NS_IMPL_FRAMEARENA_HELPERS(SVGForeignObjectFrame)
|
|||
|
||||
SVGForeignObjectFrame::SVGForeignObjectFrame(ComputedStyle* aStyle,
|
||||
nsPresContext* aPresContext)
|
||||
: nsContainerFrame(aStyle, aPresContext, kClassID), mInReflow(false) {
|
||||
: nsContainerFrame(aStyle, aPresContext, kClassID) {
|
||||
AddStateBits(NS_FRAME_REFLOW_ROOT | NS_FRAME_MAY_BE_TRANSFORMED |
|
||||
NS_FRAME_SVG_LAYOUT | NS_FRAME_FONT_INFLATION_CONTAINER |
|
||||
NS_FRAME_FONT_INFLATION_FLOW_ROOT);
|
||||
|
|
@ -412,8 +412,6 @@ void SVGForeignObjectFrame::DoReflow() {
|
|||
UniquePtr<gfxContext> renderingContext =
|
||||
presContext->PresShell()->CreateReferenceRenderingContext();
|
||||
|
||||
mInReflow = true;
|
||||
|
||||
WritingMode wm = kid->GetWritingMode();
|
||||
ReflowInput reflowInput(presContext, kid, renderingContext.get(),
|
||||
LogicalSize(wm, ISize(wm), NS_UNCONSTRAINEDSIZE));
|
||||
|
|
@ -438,8 +436,6 @@ void SVGForeignObjectFrame::DoReflow() {
|
|||
"unexpected size");
|
||||
FinishReflowChild(kid, presContext, desiredSize, &reflowInput, 0, 0,
|
||||
ReflowChildFlags::NoMoveFrame);
|
||||
|
||||
mInReflow = false;
|
||||
}
|
||||
|
||||
void SVGForeignObjectFrame::AppendDirectlyOwnedAnonBoxes(
|
||||
|
|
|
|||
|
|
@ -93,8 +93,6 @@ class SVGForeignObjectFrame final : public nsContainerFrame,
|
|||
bool IsDisabled() const { return mRect.width <= 0 || mRect.height <= 0; }
|
||||
|
||||
UniquePtr<gfxMatrix> mCanvasTM;
|
||||
|
||||
bool mInReflow;
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
|
|||
Loading…
Reference in a new issue