diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-14 22:04:32 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-14 22:04:32 -0400 |
commit | e215bfbb802a4c854aa7323c698ea5dff4045e25 (patch) | |
tree | f58f4b3dc8d9440f40840f635b39c8eefefe6cca /layout/forms/nsGfxButtonControlFrame.cpp | |
parent | b356448d145cbd294d051624512bfbfaaf18d9b6 (diff) | |
download | UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar.gz UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar.lz UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.tar.xz UXP-e215bfbb802a4c854aa7323c698ea5dff4045e25.zip |
Bug 1334247 - Remove nsIAnonymousContentCreator::CreateFrameFor
Tag #1375
Diffstat (limited to 'layout/forms/nsGfxButtonControlFrame.cpp')
-rw-r--r-- | layout/forms/nsGfxButtonControlFrame.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/layout/forms/nsGfxButtonControlFrame.cpp b/layout/forms/nsGfxButtonControlFrame.cpp index 393145e0b..df729c1aa 100644 --- a/layout/forms/nsGfxButtonControlFrame.cpp +++ b/layout/forms/nsGfxButtonControlFrame.cpp @@ -77,30 +77,6 @@ nsGfxButtonControlFrame::AppendAnonymousContentTo(nsTArray<nsIContent*>& aElemen } } -// Create the text content used as label for the button. -// The frame will be generated by the frame constructor. -nsIFrame* -nsGfxButtonControlFrame::CreateFrameFor(nsIContent* aContent) -{ - nsIFrame * newFrame = nullptr; - - if (aContent == mTextContent) { - nsContainerFrame* parentFrame = do_QueryFrame(mFrames.FirstChild()); - - nsPresContext* presContext = PresContext(); - RefPtr<nsStyleContext> textStyleContext; - textStyleContext = presContext->StyleSet()-> - ResolveStyleForText(mTextContent, mStyleContext); - - newFrame = NS_NewTextFrame(presContext->PresShell(), textStyleContext); - // initialize the text frame - newFrame->Init(mTextContent, parentFrame, nullptr); - mTextContent->SetPrimaryFrame(newFrame); - } - - return newFrame; -} - NS_QUERYFRAME_HEAD(nsGfxButtonControlFrame) NS_QUERYFRAME_ENTRY(nsIAnonymousContentCreator) NS_QUERYFRAME_TAIL_INHERITING(nsHTMLButtonControlFrame) |