| Summary: | Safari unit tests sometimes fail an ASSERTion in IOSurface.mm's optionsFor32BitSurface() | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||||
| Component: | New Bugs | Assignee: | Tim Horton <thorton> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | simon.fraser, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Tim Horton
2021-04-08 17:46:30 PDT
Created attachment 425565 [details]
Patch
Comment on attachment 425565 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425565&action=review > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:209 > + ASSERT(size.width()); > + ASSERT(size.height()); Nit - perhaps just `ASSERT(!size.isEmpty());` would be cleaner? (In reply to Wenson Hsieh from comment #3) > Comment on attachment 425565 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=425565&action=review > > > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:209 > > + ASSERT(size.width()); > > + ASSERT(size.height()); > > Nit - perhaps just `ASSERT(!size.isEmpty());` would be cleaner? Sure, that ... seems like the obvious thing to do, in hindsight. Created attachment 425566 [details]
Patch
Committed r275737 (236324@main): <https://commits.webkit.org/236324@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425566 [details]. |