Bug 1147707 - Intersect correctly in DisplayItemClip::ApplyNonRoundedIntersection. r=roc
authorSeth Fowler <seth@mozilla.com>
Thu, 26 Mar 2015 15:39:52 -0700
changeset 266359 950e7c72280af30c10ed9298b844f76cf4920cc4
parent 266358 1cf1e2b49d90e16a631751d24e10563096de588d
child 266360 3962c4efd7a37bcca10f305f7c3d7b8ab59f5f7d
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1147707
milestone39.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 1147707 - Intersect correctly in DisplayItemClip::ApplyNonRoundedIntersection. r=roc
layout/base/DisplayItemClip.cpp
--- a/layout/base/DisplayItemClip.cpp
+++ b/layout/base/DisplayItemClip.cpp
@@ -322,17 +322,17 @@ DisplayItemClip::ApplyNonRoundedIntersec
 {
   if (!mHaveClipRect) {
     return aRect;
   }
 
   nsRect result = aRect.Intersect(mClipRect);
   for (uint32_t i = 0, iEnd = mRoundedClipRects.Length();
        i < iEnd; ++i) {
-    result.Intersect(mRoundedClipRects[i].mRect);
+    result = result.Intersect(mRoundedClipRects[i].mRect);
   }
   return result;
 }
 
 void
 DisplayItemClip::RemoveRoundedCorners()
 {
   if (mRoundedClipRects.IsEmpty())