nsLegendFrame.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsLegendFrame_h___
  6. #define nsLegendFrame_h___
  7. #include "mozilla/Attributes.h"
  8. #include "nsBlockFrame.h"
  9. class nsLegendFrame final : public nsBlockFrame
  10. {
  11. public:
  12. NS_DECL_QUERYFRAME_TARGET(nsLegendFrame)
  13. NS_DECL_QUERYFRAME
  14. NS_DECL_FRAMEARENA_HELPERS
  15. explicit nsLegendFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {}
  16. virtual void Reflow(nsPresContext* aPresContext,
  17. ReflowOutput& aDesiredSize,
  18. const ReflowInput& aReflowInput,
  19. nsReflowStatus& aStatus) override;
  20. virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
  21. virtual nsIAtom* GetType() const override;
  22. #ifdef DEBUG_FRAME_DUMP
  23. virtual nsresult GetFrameName(nsAString& aResult) const override;
  24. #endif
  25. int32_t GetLogicalAlign(mozilla::WritingMode aCBWM);
  26. };
  27. #endif // guard