Bug 1201081 - Skip some code paths. r=sebastian
authorChenxia Liu <liuche@mozilla.com>
Tue, 20 Oct 2015 13:55:00 -0700
changeset 304029 8917ec916bddbbd5aacde8ec47ed94ba2fcf8d4b
parent 304028 0e8722f55ab9a5808637b34343fd04bac5755cc2
child 304030 a8b183936c658ebfdc28aa9751de8f131f014bf6
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1201081
milestone44.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 1201081 - Skip some code paths. r=sebastian
mobile/android/base/widget/RoundedCornerLayout.java
--- a/mobile/android/base/widget/RoundedCornerLayout.java
+++ b/mobile/android/base/widget/RoundedCornerLayout.java
@@ -49,16 +49,20 @@ public class RoundedCornerLayout extends
                 getResources().getDimensionPixelSize(R.dimen.doorhanger_rounded_corner_radius), metrics);
 
         setWillNotDraw(false);
     }
 
     @Override
     protected void onSizeChanged(int w, int h, int oldw, int oldh) {
         super.onSizeChanged(w, h, oldw, oldh);
+        if (cannotClipPath) {
+            return;
+        }
+
         final RectF r = new RectF(0, 0, w, h);
         path = new Path();
         path.addRoundRect(r, cornerRadius, cornerRadius, Path.Direction.CW);
         path.close();
     }
 
     @Override
     public void draw(Canvas canvas) {