Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | From f310d7e8b8d9cf6870c739650324bb585b591c0c Mon Sep 17 00:00:00 2001 |
michael@0 | 2 | From: George Wright <gwright@mozilla.com> |
michael@0 | 3 | Date: Fri, 18 May 2012 14:11:32 -0400 |
michael@0 | 4 | Subject: [PATCH 02/10] Bug 755869 - [5] Re-apply bug 688366 - Fix Skia |
michael@0 | 5 | marking radial gradients with the same radius as |
michael@0 | 6 | invalid. r=mattwoodrow |
michael@0 | 7 | |
michael@0 | 8 | --- |
michael@0 | 9 | gfx/skia/src/effects/SkGradientShader.cpp | 5 ++++- |
michael@0 | 10 | 1 files changed, 4 insertions(+), 1 deletions(-) |
michael@0 | 11 | |
michael@0 | 12 | diff --git a/gfx/skia/src/effects/SkGradientShader.cpp b/gfx/skia/src/effects/SkGradientShader.cpp |
michael@0 | 13 | index 6de820b..59ba48c 100644 |
michael@0 | 14 | --- a/gfx/skia/src/effects/SkGradientShader.cpp |
michael@0 | 15 | +++ b/gfx/skia/src/effects/SkGradientShader.cpp |
michael@0 | 16 | @@ -1911,7 +1911,10 @@ public: |
michael@0 | 17 | SkPMColor* SK_RESTRICT dstC = dstCParam; |
michael@0 | 18 | |
michael@0 | 19 | // Zero difference between radii: fill with transparent black. |
michael@0 | 20 | - if (fDiffRadius == 0) { |
michael@0 | 21 | + // TODO: Is removing this actually correct? Two circles with the |
michael@0 | 22 | + // same radius, but different centers doesn't sound like it |
michael@0 | 23 | + // should be cleared |
michael@0 | 24 | + if (fDiffRadius == 0 && fCenter1 == fCenter2) { |
michael@0 | 25 | sk_bzero(dstC, count * sizeof(*dstC)); |
michael@0 | 26 | return; |
michael@0 | 27 | } |
michael@0 | 28 | -- |
michael@0 | 29 | 1.7.5.4 |
michael@0 | 30 |