Bug 1274962 - Part 5: Don't trust the visible region for opacity within preserve-3d. r=mstange
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 03 Jun 2016 14:24:38 +1200
changeset 341450 346262b1c8441dfeb435b59ab335a9dcef7729cc
parent 341449 175627605d6ba257e96d76d285bf7c1d23b7bab8
child 341451 3c80b670cfe6517b19c8c8fd6578532dfa9c6657
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: