Bug #: 5842
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Nov 2005 11:20:57 +0000 (11:20 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Nov 2005 11:20:57 +0000 (11:20 +0000)
commit7b4c90441e5753f59557d9591a9a385078194434
tree83ca75eea73585a9f476ddb172b8d739942d84f7
parent2a37845c944ce97e74699a0653ec41e6eb893bf6
Bug #: 5842
Submitted by: eseidel
Reviewed by: mjs
        3 test cases added to cover CSS updates and CDF support.
        Updated all test results for absolute bbox change.

        Fixed in this patch:
        - CSS dynamic updates
        - dynamic path data updates
        - first pass at CDF support
        http://bugzilla.opendarwin.org/show_bug.cgi?id=5842

        * kcanvas/KCanvasContainer.cpp:
        (KCanvasContainer::KCanvasContainer): make "replaced" element
        * kcanvas/device/quartz/KCanvasItemQuartz.mm:
        (KCanvasItemQuartz::paint): added parent offset ASSERT
        * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
        (KCanvasContainerQuartz::paint): account for parent offset
        (KCanvasContainerQuartz::absoluteTransform): reflect viewport
        * khtml/css/css_valueimpl.cpp: remove HTML special case
        (DOM::CSSMutableStyleDeclarationImpl::setChanged):
        * khtml/css/cssstyleselector.cpp: remove HTML special case
        (khtml::CSSStyleSelector::locateCousinList):
        * khtml/rendering/render_object.cpp:
        (RenderObject::containingBlock): special case KCanvasContainer
        * khtml/rendering/render_style.cpp:
        (RenderStyle::operator==): fix call into SVGRenderStyle
        (RenderStyle::inheritedNotEqual): calls into SVGRenderStyle
        (RenderStyle::diff): calls into SVGRenderStyle
        * ksvg2/css/SVGRenderStyle.cpp:
        (SVGRenderStyle::equals): include flags in comparison
        (SVGRenderStyle::inheritedNotEqual): added
        * ksvg2/css/SVGRenderStyle.h:
        * ksvg2/svg/SVGPathElementImpl.cpp:
        (KSVG::SVGPathElementImpl::parseMappedAttribute): clear path first
        * ksvg2/svg/SVGStyledElementImpl.cpp:
        (SVGStyledElementImpl::attributeChanged): map to ksvg2 attributes
        * ksvg2/svg/SVGStyledElementImpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@11333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
63 files changed:
LayoutTests/svg/W3C-SVG-1.1/animate-elem-04-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-05-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-06-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/animate-elem-07-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/coords-units-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/coords-units-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/coords-units-03-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-blend-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-color-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-composite-02-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-comptran-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-diffuse-01-f-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/filters-diffuse-01-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/filters-diffuse-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-example-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-gauss-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-light-01-f-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/filters-light-01-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/filters-light-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-offset-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-specular-01-f-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/filters-specular-01-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/filters-specular-01-f-expected.txt
LayoutTests/svg/W3C-SVG-1.1/filters-tile-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/interact-zoom-01-t-expected.txt
LayoutTests/svg/W3C-SVG-1.1/painting-marker-01-f-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/painting-marker-01-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/painting-marker-02-f-expected.checksum
LayoutTests/svg/W3C-SVG-1.1/painting-marker-02-f-expected.png
LayoutTests/svg/W3C-SVG-1.1/struct-image-05-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/struct-symbol-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-path-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-spacing-01-b-expected.txt
LayoutTests/svg/W3C-SVG-1.1/text-text-01-b-expected.txt
LayoutTests/svg/custom/fill-update-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/fill-update-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/fill-update-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/fill-update.svg [new file with mode: 0644]
LayoutTests/svg/custom/path-bad-data-expected.txt
LayoutTests/svg/custom/path-update-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/path-update-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/path-update-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/path-update.svg [new file with mode: 0644]
LayoutTests/svg/custom/simpleCDF-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/simpleCDF-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/simpleCDF-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/simpleCDF.xml [new file with mode: 0644]
LayoutTests/svg/custom/use-forward-refs-expected.txt
WebCore/ChangeLog-2005-12-19
WebCore/kcanvas/KCanvasContainer.cpp
WebCore/kcanvas/device/quartz/KCanvasItemQuartz.mm
WebCore/kcanvas/device/quartz/KCanvasResourcesQuartz.mm
WebCore/khtml/css/css_valueimpl.cpp
WebCore/khtml/css/cssstyleselector.cpp
WebCore/khtml/rendering/render_object.cpp
WebCore/khtml/rendering/render_style.cpp
WebCore/ksvg2/css/SVGRenderStyle.cpp
WebCore/ksvg2/css/SVGRenderStyle.h
WebCore/ksvg2/svg/SVGFEFloodElementImpl.cpp
WebCore/ksvg2/svg/SVGPathElementImpl.cpp
WebCore/ksvg2/svg/SVGStyledElementImpl.cpp
WebCore/ksvg2/svg/SVGStyledElementImpl.h