Add area to the debug overlay when we rebuild the entire scrollframe
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 19 Sep 2017 11:35:06 +1200
changeset 685641 224aa41383ca2b5483a5eec16823877ef4ea5fa7
parent 685640 3e66c3bb56881547abf5c8e0fcc4190d13fa392a
child 685642 43120be47129dcb53219b7476e2ed9a4c4f31267
push id86010
push userbmo:ethlin@mozilla.com
push dateWed, 25 Oct 2017 00:44:42 +0000
milestone57.0a1
Add area to the debug overlay when we rebuild the entire scrollframe
layout/generic/nsGfxScrollFrame.cpp
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -3752,16 +3752,19 @@ ScrollFrameHelper::DecideScrollableLayer
       nsLayoutUtils::GetDisplayPort(content, &displayPort, RelativeTo::ScrollFrame);
 
     if (usingDisplayPort) {
       // Override the dirty rectangle if the displayport has been set.
       *aVisibleRect = displayPort;
       if (!aBuilder->IsPartialUpdate() ||
           aBuilder->InInvalidSubtree()) {
         *aDirtyRect = displayPort;
+        if (aUsingDisplayPortInvalidRect) {
+          *aUsingDisplayPortInvalidRect = true;
+        }
       } else if (mOuter->HasOverrideDirtyRegion()) {
         nsRect* rect =
           mOuter->GetProperty(nsDisplayListBuilder::DisplayListBuildingDisplayPortRect());
         if (rect) {
           *aDirtyRect = *rect;
           if (aUsingDisplayPortInvalidRect) {
             *aUsingDisplayPortInvalidRect = true;
           }