/src/mozilla-central/layout/generic/nsBackdropFrame.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
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/. */ |
6 | | |
7 | | /* rendering object for CSS "::backdrop" */ |
8 | | |
9 | | #ifndef nsBackdropFrame_h___ |
10 | | #define nsBackdropFrame_h___ |
11 | | |
12 | | #include "nsFrame.h" |
13 | | |
14 | | class nsBackdropFrame final : public nsFrame |
15 | | { |
16 | | public: |
17 | | NS_DECL_FRAMEARENA_HELPERS(nsBackdropFrame) |
18 | | |
19 | | explicit nsBackdropFrame(ComputedStyle* aStyle) |
20 | | : nsFrame(aStyle, kClassID) |
21 | 0 | {} |
22 | | |
23 | | #ifdef DEBUG_FRAME_DUMP |
24 | | virtual nsresult GetFrameName(nsAString& aResult) const override; |
25 | | #endif |
26 | | virtual ComputedStyle* |
27 | | GetParentComputedStyle(nsIFrame** aProviderFrame) const override; |
28 | | virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder, |
29 | | const nsDisplayListSet& aLists) override; |
30 | | virtual mozilla::LogicalSize |
31 | | ComputeAutoSize(gfxContext* aRenderingContext, |
32 | | mozilla::WritingMode aWM, |
33 | | const mozilla::LogicalSize& aCBSize, |
34 | | nscoord aAvailableISize, |
35 | | const mozilla::LogicalSize& aMargin, |
36 | | const mozilla::LogicalSize& aBorder, |
37 | | const mozilla::LogicalSize& aPadding, |
38 | | ComputeSizeFlags aFlags) override; |
39 | | virtual void Reflow(nsPresContext* aPresContext, |
40 | | ReflowOutput& aDesiredSize, |
41 | | const ReflowInput& aReflowInput, |
42 | | nsReflowStatus& aStatus) override; |
43 | | }; |
44 | | |
45 | | #endif // nsBackdropFrame_h___ |