2017-10-27 20:33:53 +03: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: */
|
2016-01-28 02:11:00 +03: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/. */
|
|
|
|
|
|
|
|
/* rendering object for CSS "::backdrop" */
|
|
|
|
|
|
|
|
#ifndef nsBackdropFrame_h___
|
|
|
|
#define nsBackdropFrame_h___
|
|
|
|
|
|
|
|
#include "nsFrame.h"
|
|
|
|
|
|
|
|
class nsBackdropFrame final : public nsFrame {
|
|
|
|
public:
|
2017-05-26 13:11:11 +03:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsBackdropFrame)
|
2016-01-28 02:11:00 +03:00
|
|
|
|
2019-02-05 19:45:54 +03:00
|
|
|
explicit nsBackdropFrame(ComputedStyle* aStyle, nsPresContext* aPresContext)
|
|
|
|
: nsFrame(aStyle, aPresContext, kClassID) {}
|
2016-01-28 02:11:00 +03:00
|
|
|
|
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const override;
|
|
|
|
#endif
|
2018-03-22 21:20:41 +03:00
|
|
|
virtual ComputedStyle* GetParentComputedStyle(
|
|
|
|
nsIFrame** aProviderFrame) const override;
|
2016-01-28 02:11:00 +03:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsDisplayListSet& aLists) override;
|
2016-09-03 01:01:09 +03:00
|
|
|
virtual mozilla::LogicalSize ComputeAutoSize(
|
2017-06-09 22:14:53 +03:00
|
|
|
gfxContext* aRenderingContext, mozilla::WritingMode aWM,
|
2016-09-03 01:01:09 +03:00
|
|
|
const mozilla::LogicalSize& aCBSize, nscoord aAvailableISize,
|
|
|
|
const mozilla::LogicalSize& aMargin, const mozilla::LogicalSize& aBorder,
|
|
|
|
const mozilla::LogicalSize& aPadding, ComputeSizeFlags aFlags) override;
|
2016-01-28 02:11:00 +03:00
|
|
|
virtual void Reflow(nsPresContext* aPresContext, ReflowOutput& aDesiredSize,
|
2016-07-21 13:36:39 +03:00
|
|
|
const ReflowInput& aReflowInput,
|
2016-01-28 02:11:00 +03:00
|
|
|
nsReflowStatus& aStatus) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsBackdropFrame_h___
|