Commit 96958eca authored by Robert O'Callahan's avatar Robert O'Callahan
Browse files

Bug 505743. Fix nsHTMLScrollFrame::InvalidateInternal to not take the...

Bug 505743. Fix nsHTMLScrollFrame::InvalidateInternal to not take the 'invalidation in scrollbar' path when there is no scrollbar. r=dbaron

--HG--
extra : rebase_source : 8709cdba8ea6f9776b61ff935c1c850573caff3a
parent df568d10
Loading
Loading
Loading
Loading
+33 −31
Original line number Diff line number Diff line
@@ -229,6 +229,7 @@ nsHTMLScrollFrame::InvalidateInternal(const nsRect& aDamageRect,
                                      nscoord aX, nscoord aY, nsIFrame* aForChild,
                                      PRUint32 aFlags)
{
  if (aForChild) {
    if (aForChild == mInner.mScrolledFrame) {
      // restrict aDamageRect to the scrollable view's bounds
      nsRect damage = aDamageRect + nsPoint(aX, aY);
@@ -263,6 +264,7 @@ nsHTMLScrollFrame::InvalidateInternal(const nsRect& aDamageRect,
        return;
      }
    }
  }
 
  nsHTMLContainerFrame::InvalidateInternal(aDamageRect, aX, aY, aForChild, aFlags);
}
+25 −0
Original line number Diff line number Diff line
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<style>
#a {
  display: block;
  opacity:1;
  overflow:hidden;
  width: 100px;
  height: 100px;
  background-color: lime;
}
</style>
</head>
<body>
<span id="a"></span>
<script>
function doe() {
 document.getElementById('a').style.opacity = '0';
 document.documentElement.removeAttribute("class");
}
document.addEventListener("MozReftestInvalidate", doe, false);
</script>
</body>
</html>
+1 −0
Original line number Diff line number Diff line
@@ -1282,3 +1282,4 @@ fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") == 488692-1.html 488692-1-ref.html # needs
== 503364-1a.html 503364-1-ref.html
== 503364-1b.html 503364-1-ref.html
== 504032-1.html 504032-1-ref.html
== 505743-1.html about:blank