Bug 1919083 - [ci] Enable os-integration variant for more suites, r=jmaher
[gecko.git] / layout / tables / FixedTableLayoutStrategy.h
blobf5fa45e5b398e0e76c3d488946c19ac5963390a6
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/. */
7 /*
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"
18 class nsTableFrame;
20 class FixedTableLayoutStrategy : public nsITableLayoutStrategy {
21 public:
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;
32 private:
33 nsTableFrame* mTableFrame;
34 nscoord mMinISize;
35 nscoord mLastCalcISize;
38 #endif /* !defined(FixedTableLayoutStrategy_h_) */