Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
CrashTracer: com.apple.WebKit.WebContent at com.apple.WebCore: WebCor…
…e::CachedResource::addClientToSet + 27 https://bugs.webkit.org/show_bug.cgi?id=156602 <rdar://problem/18921091> Reviewed by Simon Fraser. Source/WebCore: The CSS property list-style-image is inherited, so a transition on a parent might cause a transition on a child. On that child, the value might be between two generated crossfade images which haven't yet resolved, causing a crash. Test: transitions/crossfade-transition.html * css/CSSCrossfadeValue.cpp: (WebCore::CSSCrossfadeValue::blend): Return null if there are no cached images. * page/animation/CSSPropertyAnimation.cpp: (WebCore::blendFunc): If we don't have an actual image to blend between, fall out to the default case. LayoutTests: Tests that an animation between two inherited crossfade elements will not crash. * transitions/crossfade-transition-expected.txt: Added. * transitions/crossfade-transition.html: Added. Canonical link: https://commits.webkit.org/174701@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
76 additions
and 2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1 @@ | ||
Test passes if there is no crash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,36 @@ | ||
<script> | ||
if (window.testRunner) { | ||
window.testRunner.waitUntilDone(); | ||
window.testRunner.dumpAsText(); | ||
} | ||
|
||
window.addEventListener("load", function () { | ||
setTimeout(function () { | ||
document.body.className = "foo"; | ||
if (window.testRunner) { | ||
setTimeout(function () { | ||
window.testRunner.notifyDone(); | ||
}, 50); | ||
} | ||
}, 0); | ||
}, false); | ||
</script> | ||
<style> | ||
.a > li, | ||
.a > li p { | ||
transition: all 0.1s ease; | ||
} | ||
|
||
.a > li.b { | ||
list-style-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect width="1" height="1" fill="blue"/></svg>'); | ||
} | ||
.foo .a > li.b { | ||
list-style-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect width="1" height="1" fill="red"/></svg>'); | ||
} | ||
|
||
</style> | ||
<ul class="a"> | ||
<li class="b"> | ||
<p>Test passes if there is no crash</p> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters