AX: Defer RenderImage's imageChanged event until after layout is done.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Sep 2017 02:54:16 +0000 (02:54 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Sep 2017 02:54:16 +0000 (02:54 +0000)
commitf10f239211f468bc188bc708ba6f66b5789af32d
treea5f393e05569530e804b39c6d9ba9282912fe81c
parentda4abc58bf73582d6738bbbd39718b09cf69c4a0
AX: Defer RenderImage's imageChanged event until after layout is done.
https://bugs.webkit.org/show_bug.cgi?id=177446

Reviewed by Dean Jackson.

Source/WebCore:

This is to avoid unintentional tree mutation during layout.

Covered by existing tests.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::imageChanged):

LayoutTests:

* accessibility/image-load-on-delay.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/image-load-on-delay.html
LayoutTests/platform/mac/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderImage.cpp