Bug 1147707 - Intersect correctly in DisplayItemClip::ApplyNonRoundedIntersection. r=roc
authorSeth Fowler <seth@mozilla.com>
Thu, 26 Mar 2015 15:39:52 -0700
changeset 264897 950e7c72280af30c10ed9298b844f76cf4920cc4
parent 264896 1cf1e2b49d90e16a631751d24e10563096de588d
child 264898 3962c4efd7a37bcca10f305f7c3d7b8ab59f5f7d
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [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())