Changeset 82781 in webkit


Ignore:
Timestamp:
Apr 2, 2011 5:01:42 PM (13 years ago)
Author:
aestes@apple.com
Message:

2011-04-02 Andy Estes <aestes@apple.com>

Reviewed by Oliver Hunt.

REGRESSION (r69237): Black border around map elements while using an image map on Mac platform
https://bugs.webkit.org/show_bug.cgi?id=52518

Test: fast/images/imagemap-focus-ring-zero-outline-width.html

  • rendering/RenderImage.cpp: (WebCore::RenderImage::paintAreaElementFocusRing): Return early if outlineWidth is 0.

2011-04-02 Andy Estes <aestes@apple.com>

Reviewed by Oliver Hunt.

REGRESSION (r69237): Black border around map elements while using an image map on Mac platform
https://bugs.webkit.org/show_bug.cgi?id=52518

  • fast/images/imagemap-focus-ring-zero-outline-width.html: Added.
  • platform/mac/fast/images/imagemap-focus-ring-zero-outline-width-expected.checksum: Added.
  • platform/mac/fast/images/imagemap-focus-ring-zero-outline-width-expected.png: Added.
  • platform/mac/fast/images/imagemap-focus-ring-zero-outline-width-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r82780 r82781  
     12011-04-02  Andy Estes  <aestes@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        REGRESSION (r69237): Black border around map elements while using an image map on Mac platform
     6        https://bugs.webkit.org/show_bug.cgi?id=52518
     7
     8        * fast/images/imagemap-focus-ring-zero-outline-width.html: Added.
     9        * platform/mac/fast/images/imagemap-focus-ring-zero-outline-width-expected.checksum: Added.
     10        * platform/mac/fast/images/imagemap-focus-ring-zero-outline-width-expected.png: Added.
     11        * platform/mac/fast/images/imagemap-focus-ring-zero-outline-width-expected.txt: Added.
     12
    1132011-04-01  Beth Dakin  <bdakin@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r82778 r82781  
     12011-04-02  Andy Estes  <aestes@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        REGRESSION (r69237): Black border around map elements while using an image map on Mac platform
     6        https://bugs.webkit.org/show_bug.cgi?id=52518
     7
     8        Test: fast/images/imagemap-focus-ring-zero-outline-width.html
     9
     10        * rendering/RenderImage.cpp:
     11        (WebCore::RenderImage::paintAreaElementFocusRing): Return early if outlineWidth is 0.
     12
    1132011-04-02  Beth Dakin  <bdakin@apple.com>
    214
  • trunk/Source/WebCore/rendering/RenderImage.cpp

    r79733 r82781  
    353353
    354354    RenderStyle* areaElementStyle = areaElement->computedStyle();
    355     paintInfo.context->drawFocusRing(path, areaElementStyle->outlineWidth(), areaElementStyle->outlineOffset(),
     355    unsigned short outlineWidth = areaElementStyle->outlineWidth();
     356    if (!outlineWidth)
     357        return;
     358
     359    paintInfo.context->drawFocusRing(path, outlineWidth,
     360        areaElementStyle->outlineOffset(),
    356361        areaElementStyle->visitedDependentColor(CSSPropertyOutlineColor));
    357362}
Note: See TracChangeset for help on using the changeset viewer.