mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1236750 - Introduce a new unit type CSSTransformedLayerPixel. r=kats
This commit is contained in:
parent
fc10e39e51
commit
cf0dc6eaf9
@ -28,6 +28,7 @@ struct IsPixel : FalseType {};
|
||||
struct CSSPixel;
|
||||
struct LayoutDevicePixel;
|
||||
struct LayerPixel;
|
||||
struct CSSTransformedLayerPixel;
|
||||
struct RenderTargetPixel;
|
||||
struct ScreenPixel;
|
||||
struct ParentLayerPixel;
|
||||
@ -35,6 +36,7 @@ struct ParentLayerPixel;
|
||||
template<> struct IsPixel<CSSPixel> : TrueType {};
|
||||
template<> struct IsPixel<LayoutDevicePixel> : TrueType {};
|
||||
template<> struct IsPixel<LayerPixel> : TrueType {};
|
||||
template<> struct IsPixel<CSSTransformedLayerPixel> : TrueType {};
|
||||
template<> struct IsPixel<RenderTargetPixel> : TrueType {};
|
||||
template<> struct IsPixel<ScreenPixel> : TrueType {};
|
||||
template<> struct IsPixel<ParentLayerPixel> : TrueType {};
|
||||
@ -75,6 +77,18 @@ typedef gfx::MarginTyped<LayerPixel> LayerMargin;
|
||||
typedef gfx::IntMarginTyped<LayerPixel> LayerIntMargin;
|
||||
typedef gfx::IntRegionTyped<LayerPixel> LayerIntRegion;
|
||||
|
||||
typedef gfx::CoordTyped<CSSTransformedLayerPixel> CSSTransformedLayerCoord;
|
||||
typedef gfx::IntCoordTyped<CSSTransformedLayerPixel> CSSTransformedLayerIntCoord;
|
||||
typedef gfx::PointTyped<CSSTransformedLayerPixel> CSSTransformedLayerPoint;
|
||||
typedef gfx::IntPointTyped<CSSTransformedLayerPixel> CSSTransformedLayerIntPoint;
|
||||
typedef gfx::SizeTyped<CSSTransformedLayerPixel> CSSTransformedLayerSize;
|
||||
typedef gfx::IntSizeTyped<CSSTransformedLayerPixel> CSSTransformedLayerIntSize;
|
||||
typedef gfx::RectTyped<CSSTransformedLayerPixel> CSSTransformedLayerRect;
|
||||
typedef gfx::IntRectTyped<CSSTransformedLayerPixel> CSSTransformedLayerIntRect;
|
||||
typedef gfx::MarginTyped<CSSTransformedLayerPixel> CSSTransformedLayerMargin;
|
||||
typedef gfx::IntMarginTyped<CSSTransformedLayerPixel> CSSTransformedLayerIntMargin;
|
||||
typedef gfx::IntRegionTyped<CSSTransformedLayerPixel> CSSTransformedLayerIntRegion;
|
||||
|
||||
typedef gfx::PointTyped<RenderTargetPixel> RenderTargetPoint;
|
||||
typedef gfx::IntPointTyped<RenderTargetPixel> RenderTargetIntPoint;
|
||||
typedef gfx::SizeTyped<RenderTargetPixel> RenderTargetSize;
|
||||
@ -324,6 +338,16 @@ struct LayoutDevicePixel {
|
||||
struct LayerPixel {
|
||||
};
|
||||
|
||||
/*
|
||||
* This is Layer coordinates with the Layer's CSS transform applied.
|
||||
* It can be thought of as intermediate between LayerPixel and
|
||||
* ParentLayerPixel, as further applying async transforms to this
|
||||
* yields ParentLayerPixels.
|
||||
*/
|
||||
struct CSSTransformedLayerPixel {
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
* Layers are always composited to a render target. This unit
|
||||
* represents one pixel in the render target. Note that for the
|
||||
|
Loading…
Reference in New Issue
Block a user