Title: [96442] trunk/Source/WebCore
Revision
96442
Author
aba...@webkit.org
Date
2011-09-30 17:46:50 -0700 (Fri, 30 Sep 2011)

Log Message

Unreviewed, rolling out r96426.
http://trac.webkit.org/changeset/96426
https://bugs.webkit.org/show_bug.cgi?id=69199

Broke a zillion image results on Chromium Skia Mac (Requested
by abarth|gardener on #webkit).

Patch by Sheriff Bot <webkit.review....@gmail.com> on 2011-09-30

* platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::getFocusRingOutset):
(WebCore::GraphicsContext::drawFocusRing):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (96441 => 96442)


--- trunk/Source/WebCore/ChangeLog	2011-10-01 00:39:52 UTC (rev 96441)
+++ trunk/Source/WebCore/ChangeLog	2011-10-01 00:46:50 UTC (rev 96442)
@@ -1,3 +1,16 @@
+2011-09-30  Sheriff Bot  <webkit.review....@gmail.com>
+
+        Unreviewed, rolling out r96426.
+        http://trac.webkit.org/changeset/96426
+        https://bugs.webkit.org/show_bug.cgi?id=69199
+
+        Broke a zillion image results on Chromium Skia Mac (Requested
+        by abarth|gardener on #webkit).
+
+        * platform/graphics/skia/GraphicsContextSkia.cpp:
+        (WebCore::getFocusRingOutset):
+        (WebCore::GraphicsContext::drawFocusRing):
+
 2011-09-30  Ilya Sherman  <isher...@chromium.org>
 
         Fix assertion failure in XSS Auditor

Modified: trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (96441 => 96442)


--- trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp	2011-10-01 00:39:52 UTC (rev 96441)
+++ trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp	2011-10-01 00:46:50 UTC (rev 96442)
@@ -538,10 +538,10 @@
 #endif
 }
 
-static inline SkScalar getFocusRingOutset()
+static inline SkScalar getFocusRingOutset(int width)
 {
 #if PLATFORM(CHROMIUM) && OS(DARWIN)
-    return 0.75f;
+    return (width * 0.5f) + 0.25f;
 #else
     return 0.5f;
 #endif
@@ -557,7 +557,7 @@
         return;
 
     SkRegion focusRingRegion;
-    const SkScalar focusRingOutset = getFocusRingOutset();
+    const SkScalar focusRingOutset = getFocusRingOutset(width);
     for (unsigned i = 0; i < rectCount; i++) {
         SkIRect r = rects[i];
         r.inset(-focusRingOutset, -focusRingOutset);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to