michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0:
michael@0: #ifndef nsFieldSetFrame_h___
michael@0: #define nsFieldSetFrame_h___
michael@0:
michael@0: #include "mozilla/Attributes.h"
michael@0: #include "nsContainerFrame.h"
michael@0:
michael@0: class nsFieldSetFrame MOZ_FINAL : public nsContainerFrame
michael@0: {
michael@0: public:
michael@0: NS_DECL_FRAMEARENA_HELPERS
michael@0:
michael@0: nsFieldSetFrame(nsStyleContext* aContext);
michael@0:
michael@0: NS_HIDDEN_(nscoord)
michael@0: GetIntrinsicWidth(nsRenderingContext* aRenderingContext,
michael@0: nsLayoutUtils::IntrinsicWidthType);
michael@0: virtual nscoord GetMinWidth(nsRenderingContext* aRenderingContext) MOZ_OVERRIDE;
michael@0: virtual nscoord GetPrefWidth(nsRenderingContext* aRenderingContext) MOZ_OVERRIDE;
michael@0: virtual nsSize ComputeSize(nsRenderingContext *aRenderingContext,
michael@0: nsSize aCBSize, nscoord aAvailableWidth,
michael@0: nsSize aMargin, nsSize aBorder, nsSize aPadding,
michael@0: uint32_t aFlags) MOZ_OVERRIDE;
michael@0: virtual nscoord GetBaseline() const MOZ_OVERRIDE;
michael@0:
michael@0: /**
michael@0: * The area to paint box-shadows around. It's the border rect except
michael@0: * when there's a