Changeset 96442 in webkit


Ignore:
Timestamp:
Sep 30, 2011 5:46:50 PM (13 years ago)
Author:
abarth@webkit.org
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.bot@gmail.com> on 2011-09-30

  • platform/graphics/skia/GraphicsContextSkia.cpp:

(WebCore::getFocusRingOutset):
(WebCore::GraphicsContext::drawFocusRing):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r96440 r96442  
     12011-09-30  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r96426.
     4        http://trac.webkit.org/changeset/96426
     5        https://bugs.webkit.org/show_bug.cgi?id=69199
     6
     7        Broke a zillion image results on Chromium Skia Mac (Requested
     8        by abarth|gardener on #webkit).
     9
     10        * platform/graphics/skia/GraphicsContextSkia.cpp:
     11        (WebCore::getFocusRingOutset):
     12        (WebCore::GraphicsContext::drawFocusRing):
     13
    1142011-09-30  Ilya Sherman  <isherman@chromium.org>
    215
  • trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r96426 r96442  
    539539}
    540540
    541 static inline SkScalar getFocusRingOutset()
     541static inline SkScalar getFocusRingOutset(int width)
    542542{
    543543#if PLATFORM(CHROMIUM) && OS(DARWIN)
    544     return 0.75f;
     544    return (width * 0.5f) + 0.25f;
    545545#else
    546546    return 0.5f;
     
    558558
    559559    SkRegion focusRingRegion;
    560     const SkScalar focusRingOutset = getFocusRingOutset();
     560    const SkScalar focusRingOutset = getFocusRingOutset(width);
    561561    for (unsigned i = 0; i < rectCount; i++) {
    562562        SkIRect r = rects[i];
Note: See TracChangeset for help on using the changeset viewer.