1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 // vim:cindent:ts=2:et:sw=2:
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 * Algorithms that determine column and table isizes used for CSS2's
9 * 'table-layout: fixed'.
12 #ifndef FixedTableLayoutStrategy_h_
13 #define FixedTableLayoutStrategy_h_
15 #include "mozilla/Attributes.h"
16 #include "nsITableLayoutStrategy.h"
20 class FixedTableLayoutStrategy
: public nsITableLayoutStrategy
{
22 explicit FixedTableLayoutStrategy(nsTableFrame
* aTableFrame
);
23 virtual ~FixedTableLayoutStrategy();
25 // nsITableLayoutStrategy implementation
26 virtual nscoord
GetMinISize(gfxContext
* aRenderingContext
) override
;
27 virtual nscoord
GetPrefISize(gfxContext
* aRenderingContext
,
28 bool aComputingSize
) override
;
29 virtual void MarkIntrinsicISizesDirty() override
;
30 virtual void ComputeColumnISizes(const ReflowInput
& aReflowInput
) override
;
33 nsTableFrame
* mTableFrame
;
35 nscoord mLastCalcISize
;
38 #endif /* !defined(FixedTableLayoutStrategy_h_) */