Changeset 31805 in webkit


Ignore:
Timestamp:
Apr 11, 2008 12:00:15 AM (16 years ago)
Author:
rwlbuis@webkit.org
Message:

Reviewed by Eric.

http://bugs.webkit.org/show_bug.cgi?id=18340
Elements with display="none" in a <clipPath> still contribute to clipping path

Skip elements in clip-path container that have display=none specified.

Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r31802 r31805  
     12008-04-11  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        Testcase for:
     6        http://bugs.webkit.org/show_bug.cgi?id=18340
     7        Elements with display="none" in a <clipPath> still contribute to clipping path
     8
     9        * platform/mac/svg/custom/clip-path-display-none-child-expected.checksum: Added.
     10        * platform/mac/svg/custom/clip-path-display-none-child-expected.png: Added.
     11        * platform/mac/svg/custom/clip-path-display-none-child-expected.txt: Added.
     12        * svg/custom/clip-path-display-none-child.svg: Added.
     13
    1142008-04-10  Antti Koivisto  <antti@apple.com>
    215
  • trunk/WebCore/ChangeLog

    r31801 r31805  
     12008-04-11  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=18340
     6        Elements with display="none" in a <clipPath> still contribute to clipping path
     7
     8        Skip elements in clip-path container that have display=none specified.
     9
     10        * svg/SVGClipPathElement.cpp:
     11        (WebCore::SVGClipPathElement::canvasResource):
     12
    1132008-04-10  Antti Koivisto  <antti@apple.com>
    214
  • trunk/WebCore/svg/SVGClipPathElement.cpp

    r30633 r31805  
    11/*
    22    Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
    3                   2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
     3                  2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
    44
    55    This file is part of the KDE project
     
    106106            SVGStyledTransformableElement* styled = static_cast<SVGStyledTransformableElement*>(n);
    107107            RenderStyle* pathStyle = document()->styleSelector()->styleForElement(styled, clipPathStyle);
    108             Path pathData = styled->toClipPath();
    109             // FIXME: How do we know the element has done a layout?
    110             pathData.transform(styled->animatedLocalTransform());
    111             if (!pathData.isEmpty())
    112                 m_clipper->addClipData(pathData, pathStyle->svgStyle()->clipRule(), bbox);
     108            if (pathStyle->display() != NONE) {
     109                Path pathData = styled->toClipPath();
     110                // FIXME: How do we know the element has done a layout?
     111                pathData.transform(styled->animatedLocalTransform());
     112                if (!pathData.isEmpty())
     113                    m_clipper->addClipData(pathData, pathStyle->svgStyle()->clipRule(), bbox);
     114            }
    113115            pathStyle->deref(document()->renderArena());
    114116        }
Note: See TracChangeset for help on using the changeset viewer.