Bug 1273024 - Stop inflating the visible rect for fixed-position items unnecessarily. r=mattwoodrow
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 25 May 2016 09:19:34 -0400
changeset 337971 8c64c8c5474b1e7014efed46a0072493dceb80a4
parent 337970 0bc5c825c58ef9474a28e82f20be5b1415de863f
child 337972 fd985ed46ae441ede84b789a476d30a8428217c7
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1273024
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1273024 - Stop inflating the visible rect for fixed-position items unnecessarily. r=mattwoodrow MozReview-Commit-ID: E11n1WhvVBO
layout/base/nsDisplayList.cpp
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -4950,18 +4950,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,