2017-10-27 17:33:53 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1998-10-08 04:38:41 +00:00
|
|
|
|
|
|
|
#ifndef nsLegendFrame_h___
|
|
|
|
#define nsLegendFrame_h___
|
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2008-12-29 15:07:38 +00:00
|
|
|
#include "nsBlockFrame.h"
|
1998-10-08 04:38:41 +00:00
|
|
|
|
2017-01-28 01:34:14 +00:00
|
|
|
class nsLegendFrame final : public nsBlockFrame {
|
1998-10-08 04:38:41 +00:00
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_QUERYFRAME
|
2017-05-26 10:11:11 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsLegendFrame)
|
2009-01-12 19:20:59 +00:00
|
|
|
|
2019-02-05 16:45:54 +00:00
|
|
|
explicit nsLegendFrame(ComputedStyle* aStyle, nsPresContext* aPresContext)
|
|
|
|
: nsBlockFrame(aStyle, aPresContext, kClassID) {}
|
1998-10-08 04:38:41 +00:00
|
|
|
|
2017-04-30 15:30:08 +00:00
|
|
|
virtual void Reflow(nsPresContext* aPresContext, ReflowOutput& aDesiredSize,
|
2016-07-21 10:36:39 +00:00
|
|
|
const ReflowInput& aReflowInput,
|
2017-04-30 15:30:08 +00:00
|
|
|
nsReflowStatus& aStatus) override;
|
2000-02-09 19:34:39 +00:00
|
|
|
|
2017-11-07 00:20:33 +00:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot,
|
|
|
|
PostDestroyData& aPostDestroyData) override;
|
2000-02-09 19:34:39 +00:00
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const override;
|
1999-11-01 22:12:45 +00:00
|
|
|
#endif
|
1998-11-19 17:22:29 +00:00
|
|
|
|
2017-01-28 01:34:14 +00:00
|
|
|
int32_t GetLogicalAlign(mozilla::WritingMode aCBWM);
|
1998-10-08 04:38:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // guard
|