Not correctly recalculating layout for elements within nested SVG elements
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 20:31:11 +0000 (20:31 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 20:31:11 +0000 (20:31 +0000)
commitecfa9266d32177f510197dbb68b34ab4d1667473
tree5657e724f7983b90a06284618b3dd03e5a49e4c2
parenta734425222fe8b4d810e1e63038b0ebd47c0ff61
Not correctly recalculating layout for elements within nested SVG elements
https://bugs.webkit.org/show_bug.cgi?id=77535

Patch by Bear Travis <betravis@adobe.com> on 2012-02-22
Reviewed by Dirk Schulze.

Source/WebCore:

Relatively positioned text is not correctly updating its position when the
size of its nearest viewport changes. Updating to mark text for layout when
viewPort size changes.

Test: svg/repaint/inner-svg-change-viewPort-relative.svg

* rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::layoutChildren):

LayoutTests:

Adding a repaint test for a relatively sized inner svg and inner svg content when
its width/height changes.

* platform/chromium/test_expectations.txt:
* svg/repaint/inner-svg-change-viewPort-relative-expected.png: Added.
* svg/repaint/inner-svg-change-viewPort-relative-expected.txt: Added.
* svg/repaint/inner-svg-change-viewPort-relative.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@108537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/test_expectations.txt
LayoutTests/svg/repaint/inner-svg-change-viewPort-relative-expected.png [new file with mode: 0644]
LayoutTests/svg/repaint/inner-svg-change-viewPort-relative-expected.txt [new file with mode: 0644]
LayoutTests/svg/repaint/inner-svg-change-viewPort-relative.svg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/SVGRenderSupport.cpp