2006-03-08 Rob Buis <buis@kde.org>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Mar 2006 21:32:29 +0000 (21:32 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Mar 2006 21:32:29 +0000 (21:32 +0000)
commit496ea3aa4768e50b8e44abb189a6a927fc04c32b
tree1b88be97523035fa97491bc16d9ab5cf57359bdc
parent437819ac92b9271efa65a9670d3e068e395a8908
2006-03-08  Rob Buis  <buis@kde.org>

        Reviewed by eseidel.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6899
        SVG <rect> does not respect display: none

        For svg elements that can render, call StyledElementImpl::rendererIsNeeded
        to decide whether the element should render. In particular this way
        any setting of display="none" is handled.

        * ksvg2/svg/SVGAElementImpl.h:
        (WebCore::SVGAElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGCircleElementImpl.h:
        (WebCore::SVGCircleElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGEllipseElementImpl.h:
        (WebCore::SVGEllipseElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGForeignObjectElementImpl.h:
        (WebCore::SVGForeignObjectElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGGElementImpl.h:
        (WebCore::SVGGElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGImageElementImpl.h:
        (WebCore::SVGImageElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGLineElementImpl.h:
        (WebCore::SVGLineElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGMarkerElementImpl.h:
        (WebCore::SVGMarkerElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGMaskElementImpl.h:
        (WebCore::SVGMaskElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGPathElementImpl.h:
        (WebCore::SVGPathElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGPatternElementImpl.h:
        (WebCore::SVGPatternElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGPolyElementImpl.h:
        (WebCore::SVGPolyElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGRectElementImpl.h:
        (WebCore::SVGRectElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGSVGElementImpl.h:
        (WebCore::SVGSVGElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGSwitchElementImpl.h:
        (WebCore::SVGSwitchElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGTSpanElementImpl.h:
        (WebCore::SVGTSpanElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGTextElementImpl.h:
        (WebCore::SVGTextElementImpl::rendererIsNeeded):
        * ksvg2/svg/SVGUseElementImpl.h:
        (WebCore::SVGUseElementImpl::rendererIsNeeded):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
30 files changed:
LayoutTests/ChangeLog
LayoutTests/svg/W3C-SVG-1.1/coords-viewattr-01-b.svg
LayoutTests/svg/W3C-SVG-1.1/filters-light-01-f.svg
LayoutTests/svg/W3C-SVG-1.1/filters-specular-01-f.svg
LayoutTests/svg/W3C-SVG-1.1/render-elems-03-t.svg
LayoutTests/svg/W3C-SVG-1.1/render-groups-03-t.svg
LayoutTests/svg/custom/display-none-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/display-none-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/display-none-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/display-none.svg [new file with mode: 0644]
LayoutTests/svg/custom/feDisplacementMap-01.svg
WebCore/ChangeLog
WebCore/ksvg2/svg/SVGAElementImpl.h
WebCore/ksvg2/svg/SVGCircleElementImpl.h
WebCore/ksvg2/svg/SVGEllipseElementImpl.h
WebCore/ksvg2/svg/SVGForeignObjectElementImpl.h
WebCore/ksvg2/svg/SVGGElementImpl.h
WebCore/ksvg2/svg/SVGImageElementImpl.h
WebCore/ksvg2/svg/SVGLineElementImpl.h
WebCore/ksvg2/svg/SVGMarkerElementImpl.h
WebCore/ksvg2/svg/SVGMaskElementImpl.h
WebCore/ksvg2/svg/SVGPathElementImpl.h
WebCore/ksvg2/svg/SVGPatternElementImpl.h
WebCore/ksvg2/svg/SVGPolyElementImpl.h
WebCore/ksvg2/svg/SVGRectElementImpl.h
WebCore/ksvg2/svg/SVGSVGElementImpl.h
WebCore/ksvg2/svg/SVGSwitchElementImpl.h
WebCore/ksvg2/svg/SVGTSpanElementImpl.h
WebCore/ksvg2/svg/SVGTextElementImpl.h
WebCore/ksvg2/svg/SVGUseElementImpl.h