Bug 212386

Summary: Enhance Bitmap::setEachNthBit() to also take an end index.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: Web Template FrameworkAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, ews-watchlist, rmorisset, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch. rmorisset: review+

Mark Lam
Reported 2020-05-26 14:51:59 PDT
Previously, it was only taking the n interval, and the start index.
Attachments
proposed patch. (6.66 KB, patch)
2020-05-26 14:57 PDT, Mark Lam
rmorisset: review+
Radar WebKit Bug Importer
Comment 1 2020-05-26 14:52:24 PDT
Mark Lam
Comment 2 2020-05-26 14:57:40 PDT
Created attachment 400279 [details] proposed patch.
Robin Morisset
Comment 3 2020-05-26 15:13:20 PDT
Comment on attachment 400279 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=400279&action=review r=me > Source/WTF/wtf/Bitmap.h:436 > + ASSERT(start <= end && end <= bitmapSize); The first ASSERT is redundant, and I would split the other ASSERT into two for better error messages.
Mark Lam
Comment 4 2020-05-26 15:16:57 PDT
Comment on attachment 400279 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=400279&action=review >> Source/WTF/wtf/Bitmap.h:436 >> + ASSERT(start <= end && end <= bitmapSize); > > The first ASSERT is redundant, and I would split the other ASSERT into two for better error messages. Will fix.
Mark Lam
Comment 5 2020-05-26 16:34:09 PDT
Thanks for the review. Landed in r262167: <http://trac.webkit.org/r262167>.
Note You need to log in before you can comment on or make changes to this bug.