Bug 1273024 - Stop inflating the visible rect for fixed-position items unnecessarily. r=mattwoodrow, a=ritu
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 25 May 2016 09:19:34 -0400
changeset 333081 3cab4d427bfab94df5927f8354af449b850c6a57
parent 333080 2178fddc69247d8371c234030fade3c5149e9754
child 333082 2ab4b64da78750d82f120faa25327f25cf11e579
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow, ritu
bugs1273024
milestone48.0a2
Bug 1273024 - Stop inflating the visible rect for fixed-position items unnecessarily. r=mattwoodrow, a=ritu MozReview-Commit-ID: E11n1WhvVBO
layout/base/nsDisplayList.cpp
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -4871,18 +4871,16 @@ nsDisplayFixedPosition::nsDisplayFixedPo
 {
   MOZ_COUNT_CTOR(nsDisplayFixedPosition);
   Init(aBuilder);
 }
 
 void
 nsDisplayFixedPosition::Init(nsDisplayListBuilder* aBuilder)
 {
-  bool snap;
-  mVisibleRect = GetBounds(aBuilder, &snap);
   mAnimatedGeometryRootForScrollMetadata = mAnimatedGeometryRoot;
   if (ShouldFixToViewport(aBuilder)) {
     mAnimatedGeometryRoot = aBuilder->FindAnimatedGeometryRootFor(this);
   }
 }
 
 /* static */ nsDisplayFixedPosition*
 nsDisplayFixedPosition::CreateForFixedBackground(nsDisplayListBuilder* aBuilder,