2016-01-28 02:11:00 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
// vim:cindent:ts=2:et:sw=2:
|
|
|
|
/* 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
|
|
|
|
|
|
|
explicit nsBackdropFrame(nsStyleContext* aContext)
|
2017-05-26 13:11:11 +03:00
|
|
|
: nsFrame(aContext, kClassID)
|
2017-04-30 18:30:08 +03:00
|
|
|
{}
|
2016-01-28 02:11:00 +03:00
|
|
|
|
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const override;
|
|
|
|
#endif
|
|
|
|
virtual nsStyleContext*
|
|
|
|
GetParentStyleContext(nsIFrame** aProviderFrame) const override;
|
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsDisplayListSet& aLists) override;
|
2016-09-03 01:01:09 +03:00
|
|
|
virtual mozilla::LogicalSize
|
2017-06-09 22:14:53 +03:00
|
|
|
ComputeAutoSize(gfxContext* aRenderingContext,
|
2016-11-05 04:57:06 +03:00
|
|
|
mozilla::WritingMode aWM,
|
2016-09-03 01:01:09 +03:00
|
|
|
const mozilla::LogicalSize& aCBSize,
|
2016-11-05 04:57:06 +03:00
|
|
|
nscoord aAvailableISize,
|
2016-09-03 01:01:09 +03:00
|
|
|
const mozilla::LogicalSize& aMargin,
|
|
|
|
const mozilla::LogicalSize& aBorder,
|
|
|
|
const mozilla::LogicalSize& aPadding,
|
2016-11-05 04:57:06 +03:00
|
|
|
ComputeSizeFlags aFlags) override;
|
2016-01-28 02:11:00 +03:00
|
|
|
virtual void Reflow(nsPresContext* aPresContext,
|
2016-07-21 13:36:38 +03:00
|
|
|
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___
|