use getClipDeviceBounds, rather than (deprecated) getTotalClip
authorreed@google.com <reed@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 12:12:30 +0000 (12:12 +0000)
committerreed@google.com <reed@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 12:12:30 +0000 (12:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83808

Reviewed by Stephen White.

Equivalent functionality, existing tests apply.

* platform/graphics/skia/OpaqueRegionSkia.cpp:
(WebCore::OpaqueRegionSkia::didDraw):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114115 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/skia/OpaqueRegionSkia.cpp

index 2e949cb..7f72154 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-13  Mike Reed  <reed@google.com>
+
+        use getClipDeviceBounds, rather than (deprecated) getTotalClip
+        https://bugs.webkit.org/show_bug.cgi?id=83808
+
+        Reviewed by Stephen White.
+
+        Equivalent functionality, existing tests apply.
+
+        * platform/graphics/skia/OpaqueRegionSkia.cpp:
+        (WebCore::OpaqueRegionSkia::didDraw):
+
 2012-04-13  Thiago Marcos P. Santos  <thiago.santos@intel.com>
 
         [EFL] Add API for color chooser
index c7e8744..e602e60 100644 (file)
@@ -258,7 +258,9 @@ void OpaqueRegionSkia::didDraw(const PlatformContextSkia* context, const AffineT
     if (context->canvas()->getClipType() != SkCanvas::kRect_ClipType)
         fillsBounds = false;
     else {
-        SkIRect deviceClip = context->canvas()->getTotalClip().getBounds();
+        SkIRect deviceClip;
+        if (!context->canvas()->getClipDeviceBounds(&deviceClip))
+            return;
         if (!targetRect.intersect(SkIntToScalar(deviceClip.fLeft), SkIntToScalar(deviceClip.fTop), SkIntToScalar(deviceClip.fRight), SkIntToScalar(deviceClip.fBottom)))
             return;
     }