Bug 1031107 - Part 3: Skip display port visibility when computing plugin geometry. r=tn
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 24 Jul 2014 15:11:30 +1200
changeset 217440 23f8d7d745367dd975f554897bd378da3e683afa
parent 217439 6ced57523b1adcd5b509f697fecbcab4abde6784
child 217441 5b0c799f15bf45a412026739e98d6af567ed9e09
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstn
bugs1031107
milestone34.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 1031107 - Part 3: Skip display port visibility when computing plugin geometry. r=tn
layout/base/nsDisplayList.cpp
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -3885,16 +3885,19 @@ nsDisplayScrollLayer::ShouldBuildLayerEv
 
   return nsDisplayWrapList::ShouldBuildLayerEvenIfInvisible(aBuilder);
 }
 
 bool
 nsDisplayScrollLayer::ComputeVisibility(nsDisplayListBuilder* aBuilder,
                                         nsRegion* aVisibleRegion)
 {
+  if (aBuilder->IsForPluginGeometry()) {
+    return nsDisplayWrapList::ComputeVisibility(aBuilder, aVisibleRegion);
+  }
   nsRect displayport;
   bool usingDisplayPort =
     nsLayoutUtils::GetDisplayPort(mScrolledFrame->GetContent(), &displayport);
   nsRect scrolledContentRect = GetScrolledContentRectToDraw(aBuilder,
       usingDisplayPort ? &displayport : nullptr);
 
   nsRect boundedRect = scrolledContentRect.Intersect(mList.GetBounds(aBuilder));
   nsRegion childVisibleRegion = scrolledContentRect;