@@ -2534,14 +2534,6 @@ class nsDisplayItem {
2534
2534
return Nothing ();
2535
2535
}
2536
2536
2537
- /* *
2538
- * @return true if the contents of this item are rendered fixed relative
2539
- * to the nearest viewport.
2540
- */
2541
- virtual bool ShouldFixToViewport (nsDisplayListBuilder* aBuilder) const {
2542
- return false ;
2543
- }
2544
-
2545
2537
/* *
2546
2538
* Returns true if all layers that can be active should be forced to be
2547
2539
* active. Requires setting the pref layers.force-active=true.
@@ -4195,9 +4187,6 @@ class nsDisplayBackgroundImage : public nsPaintedDisplayItem {
4195
4187
void ComputeInvalidationRegion (nsDisplayListBuilder* aBuilder,
4196
4188
const nsDisplayItemGeometry* aGeometry,
4197
4189
nsRegion* aInvalidRegion) const override ;
4198
- bool ShouldFixToViewport (nsDisplayListBuilder* aBuilder) const override {
4199
- return mShouldFixToViewport ;
4200
- }
4201
4190
4202
4191
nsRect GetDestRect () const { return mDestRect ; }
4203
4192
@@ -4249,8 +4238,6 @@ class nsDisplayBackgroundImage : public nsPaintedDisplayItem {
4249
4238
nsRect mBounds ;
4250
4239
uint16_t mLayer ;
4251
4240
bool mIsRasterImage ;
4252
- /* Whether the image should be treated as fixed to the viewport. */
4253
- bool mShouldFixToViewport ;
4254
4241
};
4255
4242
4256
4243
/* *
@@ -5660,10 +5647,6 @@ class nsDisplayFixedPosition : public nsDisplayOwnLayer {
5660
5647
mFrame ->PresContext ()->AppUnitsPerDevPixel ());
5661
5648
}
5662
5649
5663
- bool ShouldFixToViewport (nsDisplayListBuilder* aBuilder) const override {
5664
- return mIsFixedBackground ;
5665
- }
5666
-
5667
5650
bool CreateWebRenderCommands (
5668
5651
wr::DisplayListBuilder& aBuilder, wr::IpcResourceUpdateQueue& aResources,
5669
5652
const StackingContextHelper& aSc,
0 commit comments