Bug 281003
| Summary: | REGRESSION(284617@main): Assertion fires when rendering an HDR image is partially displayed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
| Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Said Abou-Hallawa
An assertion may fire with certain window sizes when opening https://ccameron-chromium.github.io/hdr-jpeg/index.html.
After 284617@main, GraphicsContextCG::drawNativeImageInternal() has two calls to CGContextStateSaver::save(). The first one is called before clipping the context to partially display the image. The second one is called before setting the headroom of an HDR image.
If these two calls happen in the same session, the second call will fire the assertion `ASSERT(!m_saveAndRestore);` in CGContextStateSaver::save().
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Said Abou-Hallawa
rdar://137402152
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/34798
EWS
Committed 284798@main (58072722f0cc): <https://commits.webkit.org/284798@main>
Reviewed commits have been landed. Closing PR #34798 and removing active labels.