RESOLVED FIXED 49882
Use WTF_ARRAY_LENGTH in WebCore directory
https://bugs.webkit.org/show_bug.cgi?id=49882
Summary Use WTF_ARRAY_LENGTH in WebCore directory
Patrick R. Gansterer
Reported 2010-11-21 09:39:00 PST
see patch
Attachments
Patch (33.35 KB, patch)
2010-11-21 09:41 PST, Patrick R. Gansterer
no flags
Patch (32.76 KB, patch)
2010-11-21 09:53 PST, Patrick R. Gansterer
no flags
Patch (31.50 KB, patch)
2010-11-21 10:05 PST, Patrick R. Gansterer
no flags
Patch (31.40 KB, patch)
2010-11-21 10:10 PST, Patrick R. Gansterer
no flags
Patrick R. Gansterer
Comment 1 2010-11-21 09:41:40 PST
WebKit Review Bot
Comment 2 2010-11-21 09:48:21 PST
Early Warning System Bot
Comment 3 2010-11-21 09:53:18 PST
Patrick R. Gansterer
Comment 4 2010-11-21 09:53:22 PST
Eric Seidel (no email)
Comment 5 2010-11-21 09:53:51 PST
WebKit Review Bot
Comment 6 2010-11-21 09:56:05 PST
WebKit Review Bot
Comment 7 2010-11-21 09:58:12 PST
Build Bot
Comment 8 2010-11-21 10:02:27 PST
Early Warning System Bot
Comment 9 2010-11-21 10:04:08 PST
Patrick R. Gansterer
Comment 10 2010-11-21 10:05:34 PST
WebKit Review Bot
Comment 11 2010-11-21 10:07:50 PST
Patrick R. Gansterer
Comment 12 2010-11-21 10:10:39 PST
Eric Seidel (no email)
Comment 13 2010-11-21 10:13:24 PST
Eric Seidel (no email)
Comment 14 2010-11-21 10:35:39 PST
Csaba Osztrogonác
Comment 15 2010-11-21 15:44:36 PST
Comment on attachment 74510 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=74510&action=review > WebCore/html/canvas/WebGLBuffer.cpp:182 > + size_t numEntries = WTF_ARRAY_LENGTH(m_maxIndexCache); > + for (size_t i = 0; i < numEntries; ++i) We don't need numEntries variable here. Please fix this before landing: for (size_t i = 0; i < WTF_ARRAY_LENGTH(m_maxIndexCache); ++i) Otherwise LGTM.
Patrick R. Gansterer
Comment 16 2010-11-21 15:47:54 PST
Comment on attachment 74510 [details] Patch (In reply to comment #15) > (From update of attachment 74510 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=74510&action=review > > > WebCore/html/canvas/WebGLBuffer.cpp:182 > > + size_t numEntries = WTF_ARRAY_LENGTH(m_maxIndexCache); > > + for (size_t i = 0; i < numEntries; ++i) > > We don't need numEntries variable here. Please fix this before landing: > for (size_t i = 0; i < WTF_ARRAY_LENGTH(m_maxIndexCache); ++i) > > Otherwise LGTM. I removed numEntries in a first version, but the compiled said NO ;-) It's used in http://trac.webkit.org/browser/trunk/WebCore/html/canvas/WebGLBuffer.cpp?rev=68424#L190.
Csaba Osztrogonác
Comment 17 2010-11-21 15:52:21 PST
(In reply to comment #16) > I removed numEntries in a first version, but the compiled said NO ;-) > It's used in http://trac.webkit.org/browser/trunk/WebCore/html/canvas/WebGLBuffer.cpp?rev=68424#L190. Ooops, you're right. :)
WebKit Commit Bot
Comment 18 2010-11-21 16:10:51 PST
Comment on attachment 74510 [details] Patch Clearing flags on attachment: 74510 Committed r72500: <http://trac.webkit.org/changeset/72500>
WebKit Commit Bot
Comment 19 2010-11-21 16:10:58 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.