Bug 1274962 - Part 5: Don't trust the visible region for opacity within preserve-3d. r=mstange
☠☠ backed out by bd393975aadd ☠ ☠
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 03 Jun 2016 14:24:38 +1200
changeset 341309 9ac50a46557b81ae92a7e16742215afb270ee599
parent 341308 9cda37e5a58175e5d8f101b7fd07a3db6fa00138
child 341310 15b5f8019521010072d3efa96ef4105a77443d9d
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1274962
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 1274962 - Part 5: Don't trust the visible region for opacity within preserve-3d. r=mstange
layout/base/nsDisplayList.h
--- a/layout/base/nsDisplayList.h
+++ b/layout/base/nsDisplayList.h
@@ -3385,16 +3385,21 @@ public:
   virtual void WriteDebugInfo(std::stringstream& aStream) override;
 
   bool CanUseAsyncAnimations(nsDisplayListBuilder* aBuilder) override;
 
   void SetParticipatesInPreserve3D(bool aParticipatesInPreserve3D)
   {
     mParticipatesInPreserve3D = aParticipatesInPreserve3D;
   }
+
+  virtual bool ShouldBuildLayerEvenIfInvisible(nsDisplayListBuilder* aBuilder) override
+  {
+    return mParticipatesInPreserve3D;
+  }
 private:
   float mOpacity;
   bool mForEventsOnly;
   bool mParticipatesInPreserve3D;
 };
 
 class nsDisplayBlendMode : public nsDisplayWrapList {
 public: