Changeset 31805 in webkit
- Timestamp:
- Apr 11, 2008 12:00:15 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r31802 r31805 1 2008-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 1 14 2008-04-10 Antti Koivisto <antti@apple.com> 2 15 -
trunk/WebCore/ChangeLog
r31801 r31805 1 2008-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 1 13 2008-04-10 Antti Koivisto <antti@apple.com> 2 14 -
trunk/WebCore/svg/SVGClipPathElement.cpp
r30633 r31805 1 1 /* 2 2 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> 4 4 5 5 This file is part of the KDE project … … 106 106 SVGStyledTransformableElement* styled = static_cast<SVGStyledTransformableElement*>(n); 107 107 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 } 113 115 pathStyle->deref(document()->renderArena()); 114 116 }
Note: See TracChangeset
for help on using the changeset viewer.