Changeset 101452 in webkit


Ignore:
Timestamp:
Nov 29, 2011, 11:56:23 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

Fix for fill color not being applied inside visited links
https://bugs.webkit.org/show_bug.cgi?id=70434

Patch by Philip Rogers <pdr@google.com> on 2011-11-29
Reviewed by Antti Koivisto.

Source/WebCore:

Test: svg/custom/visited-link-color.svg

  • rendering/style/SVGRenderStyle.h:

(WebCore::SVGRenderStyle::setFillPaint):
(WebCore::SVGRenderStyle::setStrokePaint):

LayoutTests:

  • svg/custom/visited-link-color-expected.png: Added.
  • svg/custom/visited-link-color-expected.txt: Added.
  • svg/custom/visited-link-color.svg: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r101449 r101452  
     12011-11-29  Philip Rogers  <pdr@google.com>
     2
     3        Fix for fill color not being applied inside visited links
     4        https://bugs.webkit.org/show_bug.cgi?id=70434
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * svg/custom/visited-link-color-expected.png: Added.
     9        * svg/custom/visited-link-color-expected.txt: Added.
     10        * svg/custom/visited-link-color.svg: Added.
     11
    1122011-11-29  Hayato Ito  <hayato@chromium.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r101446 r101452  
     12011-11-29  Philip Rogers  <pdr@google.com>
     2
     3        Fix for fill color not being applied inside visited links
     4        https://bugs.webkit.org/show_bug.cgi?id=70434
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Test: svg/custom/visited-link-color.svg
     9
     10        * rendering/style/SVGRenderStyle.h:
     11        (WebCore::SVGRenderStyle::setFillPaint):
     12        (WebCore::SVGRenderStyle::setStrokePaint):
     13
    1142011-11-29  David Levin  <levin@chromium.org>
    215
  • trunk/Source/WebCore/rendering/style/SVGRenderStyle.h

    r98542 r101452  
    165165        }
    166166        if (applyToVisitedLinkStyle) {
    167             if (!(fill->paintType == type))
     167            if (!(fill->visitedLinkPaintType == type))
    168168                fill.access()->visitedLinkPaintType = type;
    169             if (!(fill->paintColor == color))
     169            if (!(fill->visitedLinkPaintColor == color))
    170170                fill.access()->visitedLinkPaintColor = color;
    171             if (!(fill->paintUri == uri))
     171            if (!(fill->visitedLinkPaintUri == uri))
    172172                fill.access()->visitedLinkPaintUri = uri;
    173173        }
     
    191191        }
    192192        if (applyToVisitedLinkStyle) {
    193             if (!(stroke->paintType == type))
     193            if (!(stroke->visitedLinkPaintType == type))
    194194                stroke.access()->visitedLinkPaintType = type;
    195             if (!(stroke->paintColor == color))
     195            if (!(stroke->visitedLinkPaintColor == color))
    196196                stroke.access()->visitedLinkPaintColor = color;
    197             if (!(stroke->paintUri == uri))
     197            if (!(stroke->visitedLinkPaintUri == uri))
    198198                stroke.access()->visitedLinkPaintUri = uri;
    199199        }
Note: See TracChangeset for help on using the changeset viewer.