2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
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-04-13 20:24:54 +00:00
|
|
|
#ifndef nsTableOuterFrame_h__
|
|
|
|
#define nsTableOuterFrame_h__
|
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
1998-04-13 20:24:54 +00:00
|
|
|
#include "nscore.h"
|
2011-12-27 20:18:48 +00:00
|
|
|
#include "nsContainerFrame.h"
|
2012-08-08 13:05:17 +00:00
|
|
|
#include "nsCellMap.h"
|
2000-01-28 02:19:45 +00:00
|
|
|
#include "nsBlockFrame.h"
|
2011-09-12 16:08:07 +00:00
|
|
|
#include "nsTableFrame.h"
|
1998-04-13 20:24:54 +00:00
|
|
|
|
2000-01-28 02:19:45 +00:00
|
|
|
class nsTableCaptionFrame : public nsBlockFrame
|
|
|
|
{
|
2000-03-02 06:09:37 +00:00
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2014-05-24 22:20:40 +00:00
|
|
|
friend nsTableCaptionFrame* NS_NewTableCaptionFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext);
|
|
|
|
// nsIFrame
|
2013-05-14 16:33:23 +00:00
|
|
|
virtual nsIAtom* GetType() const MOZ_OVERRIDE;
|
2000-03-02 06:09:37 +00:00
|
|
|
|
2014-08-24 14:34:51 +00:00
|
|
|
virtual mozilla::LogicalSize
|
|
|
|
ComputeAutoSize(nsRenderingContext *aRenderingContext,
|
|
|
|
mozilla::WritingMode aWritingMode,
|
|
|
|
const mozilla::LogicalSize& aCBSize,
|
|
|
|
nscoord aAvailableISize,
|
|
|
|
const mozilla::LogicalSize& aMargin,
|
|
|
|
const mozilla::LogicalSize& aBorder,
|
|
|
|
const mozilla::LogicalSize& aPadding,
|
|
|
|
bool aShrinkWrap) MOZ_OVERRIDE;
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
|
|
|
|
2014-11-20 18:24:10 +00:00
|
|
|
virtual nsStyleContext* GetParentStyleContext(nsIFrame** aProviderFrame) const MOZ_OVERRIDE;
|
2011-09-12 16:08:07 +00:00
|
|
|
|
2007-07-05 15:39:29 +00:00
|
|
|
#ifdef ACCESSIBILITY
|
2012-09-28 21:53:44 +00:00
|
|
|
virtual mozilla::a11y::AccType AccessibleType() MOZ_OVERRIDE;
|
2007-07-05 15:39:29 +00:00
|
|
|
#endif
|
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE;
|
2006-07-20 08:50:26 +00:00
|
|
|
#endif
|
|
|
|
|
2000-03-02 06:09:37 +00:00
|
|
|
protected:
|
2014-09-01 03:36:37 +00:00
|
|
|
explicit nsTableCaptionFrame(nsStyleContext* aContext);
|
2000-03-02 06:09:37 +00:00
|
|
|
virtual ~nsTableCaptionFrame();
|
2000-01-28 02:19:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
1998-04-13 20:24:54 +00:00
|
|
|
/**
|
2014-05-28 19:36:58 +00:00
|
|
|
* Primary frame for a table element,
|
1998-07-08 04:49:01 +00:00
|
|
|
* the nsTableOuterFrame contains 0 or one caption frame, and a nsTableFrame
|
2004-12-19 21:45:51 +00:00
|
|
|
* pseudo-frame (referred to as the "inner frame').
|
1998-04-13 20:24:54 +00:00
|
|
|
*/
|
2012-08-08 13:05:17 +00:00
|
|
|
class nsTableOuterFrame : public nsContainerFrame
|
1998-04-13 20:24:54 +00:00
|
|
|
{
|
|
|
|
public:
|
2009-01-12 19:20:59 +00:00
|
|
|
NS_DECL_QUERYFRAME
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
1999-07-31 22:11:50 +00:00
|
|
|
|
2012-08-08 13:05:17 +00:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsTableOuterFrame)
|
|
|
|
|
2005-11-04 02:38:33 +00:00
|
|
|
/** instantiate a new instance of nsTableRowFrame.
|
|
|
|
* @param aPresShell the pres shell for this frame
|
1998-04-14 21:45:28 +00:00
|
|
|
*
|
2005-11-04 02:38:33 +00:00
|
|
|
* @return the frame that was created
|
1998-04-14 21:45:28 +00:00
|
|
|
*/
|
2014-05-24 22:20:40 +00:00
|
|
|
friend nsTableOuterFrame* NS_NewTableOuterFrame(nsIPresShell* aPresShell,
|
|
|
|
nsStyleContext* aContext);
|
2002-11-08 05:29:34 +00:00
|
|
|
|
|
|
|
// nsIFrame overrides - see there for a description
|
1998-04-13 20:24:54 +00:00
|
|
|
|
2013-05-14 16:33:23 +00:00
|
|
|
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
2000-04-28 21:05:31 +00:00
|
|
|
|
2013-05-14 16:33:23 +00:00
|
|
|
virtual const nsFrameList& GetChildList(ChildListID aListID) const MOZ_OVERRIDE;
|
2012-09-14 16:10:08 +00:00
|
|
|
virtual void GetChildLists(nsTArray<ChildList>* aLists) const MOZ_OVERRIDE;
|
2000-01-28 02:19:45 +00:00
|
|
|
|
2014-05-28 19:36:58 +00:00
|
|
|
virtual void SetInitialChildList(ChildListID aListID,
|
|
|
|
nsFrameList& aChildList) MOZ_OVERRIDE;
|
2014-05-28 19:36:58 +00:00
|
|
|
virtual void AppendFrames(ChildListID aListID,
|
2014-05-28 19:36:58 +00:00
|
|
|
nsFrameList& aFrameList) MOZ_OVERRIDE;
|
2014-05-28 19:36:58 +00:00
|
|
|
virtual void InsertFrames(ChildListID aListID,
|
2014-05-28 19:36:58 +00:00
|
|
|
nsIFrame* aPrevFrame,
|
|
|
|
nsFrameList& aFrameList) MOZ_OVERRIDE;
|
2014-05-28 19:36:58 +00:00
|
|
|
virtual void RemoveFrame(ChildListID aListID,
|
2014-05-28 19:36:58 +00:00
|
|
|
nsIFrame* aOldFrame) MOZ_OVERRIDE;
|
1999-08-10 03:52:15 +00:00
|
|
|
|
2014-05-24 22:20:39 +00:00
|
|
|
virtual nsContainerFrame* GetContentInsertionFrame() MOZ_OVERRIDE {
|
2011-08-24 20:54:30 +00:00
|
|
|
return GetFirstPrincipalChild()->GetContentInsertionFrame();
|
2004-07-18 12:02:53 +00:00
|
|
|
}
|
|
|
|
|
2001-08-17 03:13:07 +00:00
|
|
|
#ifdef ACCESSIBILITY
|
2012-09-28 21:53:44 +00:00
|
|
|
virtual mozilla::a11y::AccType AccessibleType() MOZ_OVERRIDE;
|
2001-08-17 03:13:07 +00:00
|
|
|
#endif
|
2001-05-17 23:52:32 +00:00
|
|
|
|
2013-02-14 11:12:27 +00:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
2006-01-26 02:29:17 +00:00
|
|
|
|
2013-02-14 11:12:27 +00:00
|
|
|
void BuildDisplayListForInnerTable(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists);
|
2000-03-22 02:43:08 +00:00
|
|
|
|
2014-06-17 12:19:38 +00:00
|
|
|
virtual nscoord GetLogicalBaseline(mozilla::WritingMode aWritingMode) const MOZ_OVERRIDE;
|
2007-01-23 04:06:56 +00:00
|
|
|
|
2014-07-24 17:03:25 +00:00
|
|
|
virtual nscoord GetMinISize(nsRenderingContext *aRenderingContext) MOZ_OVERRIDE;
|
|
|
|
virtual nscoord GetPrefISize(nsRenderingContext *aRenderingContext) MOZ_OVERRIDE;
|
2014-08-24 14:34:51 +00:00
|
|
|
|
|
|
|
virtual mozilla::LogicalSize
|
|
|
|
ComputeAutoSize(nsRenderingContext *aRenderingContext,
|
|
|
|
mozilla::WritingMode aWritingMode,
|
|
|
|
const mozilla::LogicalSize& aCBSize,
|
|
|
|
nscoord aAvailableISize,
|
|
|
|
const mozilla::LogicalSize& aMargin,
|
|
|
|
const mozilla::LogicalSize& aBorder,
|
|
|
|
const mozilla::LogicalSize& aPadding,
|
|
|
|
bool aShrinkWrap) MOZ_OVERRIDE;
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
|
|
|
|
1999-01-15 19:55:19 +00:00
|
|
|
/** process a reflow command for the table.
|
|
|
|
* This involves reflowing the caption and the inner table.
|
|
|
|
* @see nsIFrame::Reflow */
|
2014-05-13 00:47:52 +00:00
|
|
|
virtual void Reflow(nsPresContext* aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
|
|
|
nsReflowStatus& aStatus) MOZ_OVERRIDE;
|
1998-04-13 20:24:54 +00:00
|
|
|
|
1999-02-24 05:54:31 +00:00
|
|
|
/**
|
|
|
|
* Get the "type" of the frame
|
|
|
|
*
|
2007-01-30 00:06:41 +00:00
|
|
|
* @see nsGkAtoms::tableOuterFrame
|
1999-02-24 05:54:31 +00:00
|
|
|
*/
|
2012-09-14 16:10:08 +00:00
|
|
|
virtual nsIAtom* GetType() const MOZ_OVERRIDE;
|
1999-02-24 05:54:31 +00:00
|
|
|
|
2014-01-05 23:31:14 +00:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE;
|
1999-09-01 01:02:16 +00:00
|
|
|
#endif
|
1999-08-31 03:09:40 +00:00
|
|
|
|
2014-11-20 18:24:10 +00:00
|
|
|
virtual nsStyleContext* GetParentStyleContext(nsIFrame** aProviderFrame) const MOZ_OVERRIDE;
|
2000-09-12 22:48:35 +00:00
|
|
|
|
2012-08-08 13:05:17 +00:00
|
|
|
/**
|
|
|
|
* Return the content for the cell at the given row and column.
|
|
|
|
*/
|
|
|
|
nsIContent* GetCellAt(uint32_t aRowIdx, uint32_t aColIdx) const;
|
1999-08-01 16:20:14 +00:00
|
|
|
|
2012-08-08 13:05:17 +00:00
|
|
|
/**
|
|
|
|
* Return the number of rows in the table.
|
|
|
|
*/
|
|
|
|
int32_t GetRowCount() const
|
|
|
|
{
|
|
|
|
return InnerTableFrame()->GetRowCount();
|
|
|
|
}
|
1999-07-31 22:11:50 +00:00
|
|
|
|
2012-08-08 13:05:17 +00:00
|
|
|
/**
|
|
|
|
* Return the number of columns in the table.
|
|
|
|
*/
|
|
|
|
int32_t GetColCount() const
|
|
|
|
{
|
|
|
|
return InnerTableFrame()->GetColCount();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the index of the cell at the given row and column.
|
|
|
|
*/
|
|
|
|
int32_t GetIndexByRowAndColumn(int32_t aRowIdx, int32_t aColIdx) const
|
|
|
|
{
|
|
|
|
nsTableCellMap* cellMap = InnerTableFrame()->GetCellMap();
|
|
|
|
if (!cellMap)
|
|
|
|
return -1;
|
1999-07-31 22:11:50 +00:00
|
|
|
|
2012-08-08 13:05:17 +00:00
|
|
|
return cellMap->GetIndexByRowAndColumn(aRowIdx, aColIdx);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the row and column indices for the cell at the given index.
|
|
|
|
*/
|
|
|
|
void GetRowAndColumnByIndex(int32_t aCellIdx, int32_t* aRowIdx,
|
|
|
|
int32_t* aColIdx) const
|
|
|
|
{
|
|
|
|
*aRowIdx = *aColIdx = 0;
|
|
|
|
nsTableCellMap* cellMap = InnerTableFrame()->GetCellMap();
|
|
|
|
if (cellMap) {
|
|
|
|
cellMap->GetRowAndColumnByIndex(aCellIdx, aRowIdx, aColIdx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* return the frame for the cell at the given row and column.
|
|
|
|
*/
|
|
|
|
nsTableCellFrame* GetCellFrameAt(uint32_t aRowIdx, uint32_t aColIdx) const
|
|
|
|
{
|
|
|
|
nsTableCellMap* map = InnerTableFrame()->GetCellMap();
|
|
|
|
if (!map) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
return map->GetCellInfoAt(aRowIdx, aColIdx);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the col span of the cell at the given row and column indices.
|
|
|
|
*/
|
|
|
|
uint32_t GetEffectiveColSpanAt(uint32_t aRowIdx, uint32_t aColIdx) const
|
|
|
|
{
|
|
|
|
nsTableCellMap* map = InnerTableFrame()->GetCellMap();
|
|
|
|
return map->GetEffectiveColSpan(aRowIdx, aColIdx);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the effective row span of the cell at the given row and column.
|
|
|
|
*/
|
|
|
|
uint32_t GetEffectiveRowSpanAt(uint32_t aRowIdx, uint32_t aColIdx) const
|
|
|
|
{
|
|
|
|
nsTableCellMap* map = InnerTableFrame()->GetCellMap();
|
|
|
|
return map->GetEffectiveRowSpan(aRowIdx, aColIdx);
|
|
|
|
}
|
2008-02-07 07:03:26 +00:00
|
|
|
|
1998-04-13 20:24:54 +00:00
|
|
|
protected:
|
|
|
|
|
|
|
|
|
2014-09-01 03:36:37 +00:00
|
|
|
explicit nsTableOuterFrame(nsStyleContext* aContext);
|
2000-03-02 06:09:37 +00:00
|
|
|
virtual ~nsTableOuterFrame();
|
|
|
|
|
2004-07-31 23:15:21 +00:00
|
|
|
void InitChildReflowState(nsPresContext& aPresContext,
|
2002-02-19 15:48:28 +00:00
|
|
|
nsHTMLReflowState& aReflowState);
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
uint8_t GetCaptionSide(); // NS_STYLE_CAPTION_SIDE_* or NO_SIDE
|
2008-02-27 02:02:20 +00:00
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
bool HasSideCaption() {
|
2012-08-22 15:56:38 +00:00
|
|
|
uint8_t captionSide = GetCaptionSide();
|
2008-02-27 02:02:20 +00:00
|
|
|
return captionSide == NS_STYLE_CAPTION_SIDE_LEFT ||
|
|
|
|
captionSide == NS_STYLE_CAPTION_SIDE_RIGHT;
|
|
|
|
}
|
2002-11-08 05:29:34 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
uint8_t GetCaptionVerticalAlign();
|
2000-04-28 21:05:31 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
void SetDesiredSize(uint8_t aCaptionSide,
|
2000-04-28 21:05:31 +00:00
|
|
|
const nsMargin& aInnerMargin,
|
|
|
|
const nsMargin& aCaptionMargin,
|
|
|
|
nscoord& aWidth,
|
|
|
|
nscoord& aHeight);
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
nsresult GetCaptionOrigin(uint32_t aCaptionSide,
|
2000-04-28 21:05:31 +00:00
|
|
|
const nsSize& aContainBlockSize,
|
|
|
|
const nsSize& aInnerSize,
|
|
|
|
const nsMargin& aInnerMargin,
|
|
|
|
const nsSize& aCaptionSize,
|
|
|
|
nsMargin& aCaptionMargin,
|
|
|
|
nsPoint& aOrigin);
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
nsresult GetInnerOrigin(uint32_t aCaptionSide,
|
2000-04-28 21:05:31 +00:00
|
|
|
const nsSize& aContainBlockSize,
|
|
|
|
const nsSize& aCaptionSize,
|
|
|
|
const nsMargin& aCaptionMargin,
|
|
|
|
const nsSize& aInnerSize,
|
|
|
|
nsMargin& aInnerMargin,
|
|
|
|
nsPoint& aOrigin);
|
2002-11-08 05:29:34 +00:00
|
|
|
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
|
|
|
// reflow the child (caption or innertable frame)
|
2008-02-27 02:01:33 +00:00
|
|
|
void OuterBeginReflowChild(nsPresContext* aPresContext,
|
|
|
|
nsIFrame* aChildFrame,
|
|
|
|
const nsHTMLReflowState& aOuterRS,
|
|
|
|
void* aChildRSSpace,
|
2014-07-24 08:28:46 +00:00
|
|
|
nscoord aAvailISize);
|
2008-02-27 02:01:33 +00:00
|
|
|
|
2014-05-13 00:47:52 +00:00
|
|
|
void OuterDoReflowChild(nsPresContext* aPresContext,
|
|
|
|
nsIFrame* aChildFrame,
|
|
|
|
const nsHTMLReflowState& aChildRS,
|
|
|
|
nsHTMLReflowMetrics& aMetrics,
|
|
|
|
nsReflowStatus& aStatus);
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
|
|
|
|
|
|
|
// Set the reflow metrics
|
2012-08-22 15:56:38 +00:00
|
|
|
void UpdateReflowMetrics(uint8_t aCaptionSide,
|
2000-04-28 21:05:31 +00:00
|
|
|
nsHTMLReflowMetrics& aMet,
|
|
|
|
const nsMargin& aInnerMargin,
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
|
|
|
const nsMargin& aCaptionMargin);
|
2000-04-28 21:05:31 +00:00
|
|
|
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
|
|
|
// Get the margin. aMarginNoAuto is aMargin, but with auto
|
2002-11-08 05:29:34 +00:00
|
|
|
// margins set to 0
|
2009-12-23 02:59:29 +00:00
|
|
|
void GetChildMargin(nsPresContext* aPresContext,
|
|
|
|
const nsHTMLReflowState& aOuterRS,
|
|
|
|
nsIFrame* aChildFrame,
|
|
|
|
nscoord aAvailableWidth,
|
2014-07-24 08:28:46 +00:00
|
|
|
mozilla::LogicalMargin& aMargin);
|
2000-04-28 21:05:31 +00:00
|
|
|
|
2013-05-14 16:33:23 +00:00
|
|
|
virtual bool IsFrameOfType(uint32_t aFlags) const MOZ_OVERRIDE
|
2013-03-15 18:36:30 +00:00
|
|
|
{
|
|
|
|
return nsContainerFrame::IsFrameOfType(aFlags &
|
|
|
|
(~eCanContainOverflowContainers));
|
|
|
|
}
|
|
|
|
|
2012-02-15 09:28:21 +00:00
|
|
|
nsTableFrame* InnerTableFrame() const {
|
2011-09-12 16:08:07 +00:00
|
|
|
return static_cast<nsTableFrame*>(mFrames.FirstChild());
|
|
|
|
}
|
|
|
|
|
1998-04-13 20:24:54 +00:00
|
|
|
private:
|
2005-12-03 15:13:08 +00:00
|
|
|
nsFrameList mCaptionFrames;
|
1998-04-13 20:24:54 +00:00
|
|
|
};
|
|
|
|
|
1998-10-14 22:12:06 +00:00
|
|
|
#endif
|