Changeset 222546 in webkit
- Timestamp:
- Sep 26, 2017 7:54:16 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r222544 r222546 1 2017-09-26 Zalan Bujtas <zalan@apple.com> 2 3 AX: Defer RenderImage's imageChanged event until after layout is done. 4 https://bugs.webkit.org/show_bug.cgi?id=177446 5 6 Reviewed by Dean Jackson. 7 8 * accessibility/image-load-on-delay.html: 9 1 10 2017-09-26 Joanmarie Diggs <jdiggs@igalia.com> 2 11 -
trunk/LayoutTests/accessibility/image-load-on-delay.html
r202841 r222546 19 19 20 20 if (window.accessibilityController) { 21 document.body.offsetHeight; 21 22 window.jsTestIsAsync = true; 22 23 var content = accessibilityController.accessibleElementById("content"); … … 24 25 25 26 document.getElementById("image").onload = function() { 27 document.body.offsetHeight; 26 28 debug("AFTER: Group count: " + content.childrenCount); 27 29 finishJSTest(); … … 30 32 setTimeout(function() { 31 33 document.getElementById("image").src = "resources/cake.png"; 32 }, 100 0);34 }, 100); 33 35 } 34 36 -
trunk/LayoutTests/platform/mac/TestExpectations
r222486 r222546 1771 1771 1772 1772 webkit.org/b/177323 imported/w3c/web-platform-tests/fetch/security/embedded-credentials.tentative.sub.html [ Pass Failure ] 1773 1774 webkit.org/b/177520 accessibility/image-load-on-delay.html [ Pass Failure ] -
trunk/Source/WebCore/ChangeLog
r222544 r222546 1 2017-09-26 Zalan Bujtas <zalan@apple.com> 2 3 AX: Defer RenderImage's imageChanged event until after layout is done. 4 https://bugs.webkit.org/show_bug.cgi?id=177446 5 6 Reviewed by Dean Jackson. 7 8 This is to avoid unintentional tree mutation during layout. 9 10 Covered by existing tests. 11 12 * rendering/RenderImage.cpp: 13 (WebCore::RenderImage::imageChanged): 14 1 15 2017-09-26 Joanmarie Diggs <jdiggs@igalia.com> 2 16 -
trunk/Source/WebCore/rendering/RenderImage.cpp
r221377 r222546 269 269 if (UNLIKELY(AXObjectCache::accessibilityEnabled())) { 270 270 if (AXObjectCache* cache = document().existingAXObjectCache()) 271 cache-> recomputeIsIgnored(this);271 cache->deferRecomputeIsIgnored(element()); 272 272 } 273 273
Note: See TracChangeset
for help on using the changeset viewer.