mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1264837 Part 2 - Remove nsColorControlFrameSuper. r=dholbert
MozReview-Commit-ID: DKaroibsqfQ --HG-- extra : rebase_source : 4825b7eb4a5d02e0d510a3f0e76d7c06a1f9f9b2
This commit is contained in:
parent
28664ebdb0
commit
3209f075ec
@ -20,8 +20,8 @@
|
||||
|
||||
using mozilla::dom::Element;
|
||||
|
||||
nsColorControlFrame::nsColorControlFrame(nsStyleContext* aContext):
|
||||
nsColorControlFrameSuper(aContext)
|
||||
nsColorControlFrame::nsColorControlFrame(nsStyleContext* aContext)
|
||||
: nsHTMLButtonControlFrame(aContext)
|
||||
{
|
||||
}
|
||||
|
||||
@ -36,14 +36,14 @@ NS_IMPL_FRAMEARENA_HELPERS(nsColorControlFrame)
|
||||
NS_QUERYFRAME_HEAD(nsColorControlFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsColorControlFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsIAnonymousContentCreator)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsColorControlFrameSuper)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsHTMLButtonControlFrame)
|
||||
|
||||
|
||||
void nsColorControlFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
||||
{
|
||||
nsFormControlFrame::RegUnRegAccessKey(static_cast<nsIFrame*>(this), false);
|
||||
nsContentUtils::DestroyAnonymousContent(&mColorContent);
|
||||
nsColorControlFrameSuper::DestroyFrom(aDestructRoot);
|
||||
nsHTMLButtonControlFrame::DestroyFrom(aDestructRoot);
|
||||
}
|
||||
|
||||
nsIAtom*
|
||||
@ -126,7 +126,7 @@ nsColorControlFrame::AttributeChanged(int32_t aNameSpaceID,
|
||||
aNameSpaceID == kNameSpaceID_None && nsGkAtoms::value == aAttribute) {
|
||||
UpdateColor();
|
||||
}
|
||||
return nsColorControlFrameSuper::AttributeChanged(aNameSpaceID, aAttribute,
|
||||
return nsHTMLButtonControlFrame::AttributeChanged(aNameSpaceID, aAttribute,
|
||||
aModType);
|
||||
}
|
||||
|
||||
|
@ -14,11 +14,9 @@ namespace mozilla {
|
||||
enum class CSSPseudoElementType : uint8_t;
|
||||
} // namespace mozilla
|
||||
|
||||
typedef nsHTMLButtonControlFrame nsColorControlFrameSuper;
|
||||
|
||||
// Class which implements the input type=color
|
||||
|
||||
class nsColorControlFrame final : public nsColorControlFrameSuper,
|
||||
class nsColorControlFrame final : public nsHTMLButtonControlFrame,
|
||||
public nsIAnonymousContentCreator
|
||||
{
|
||||
typedef mozilla::CSSPseudoElementType CSSPseudoElementType;
|
||||
|
Loading…
Reference in New Issue
Block a user