WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(32.76 KB, patch)
2010-11-21 09:53 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch
(31.50 KB, patch)
2010-11-21 10:05 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Patch
(31.40 KB, patch)
2010-11-21 10:10 PST
,
Patrick R. Gansterer
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Patrick R. Gansterer
Comment 1
2010-11-21 09:41:40 PST
Created
attachment 74507
[details]
Patch
WebKit Review Bot
Comment 2
2010-11-21 09:48:21 PST
Attachment 74507
[details]
did not build on gtk: Build output:
http://queues.webkit.org/results/6274043
Early Warning System Bot
Comment 3
2010-11-21 09:53:18 PST
Attachment 74507
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/6246088
Patrick R. Gansterer
Comment 4
2010-11-21 09:53:22 PST
Created
attachment 74508
[details]
Patch
Eric Seidel (no email)
Comment 5
2010-11-21 09:53:51 PST
Attachment 74507
[details]
did not build on mac: Build output:
http://queues.webkit.org/results/6246089
WebKit Review Bot
Comment 6
2010-11-21 09:56:05 PST
Attachment 74507
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/6128104
WebKit Review Bot
Comment 7
2010-11-21 09:58:12 PST
Attachment 74508
[details]
did not build on gtk: Build output:
http://queues.webkit.org/results/6217127
Build Bot
Comment 8
2010-11-21 10:02:27 PST
Attachment 74507
[details]
did not build on win: Build output:
http://queues.webkit.org/results/6118106
Early Warning System Bot
Comment 9
2010-11-21 10:04:08 PST
Attachment 74508
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/6144106
Patrick R. Gansterer
Comment 10
2010-11-21 10:05:34 PST
Created
attachment 74509
[details]
Patch
WebKit Review Bot
Comment 11
2010-11-21 10:07:50 PST
Attachment 74508
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/6257080
Patrick R. Gansterer
Comment 12
2010-11-21 10:10:39 PST
Created
attachment 74510
[details]
Patch
Eric Seidel (no email)
Comment 13
2010-11-21 10:13:24 PST
Attachment 74507
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/6164119
Eric Seidel (no email)
Comment 14
2010-11-21 10:35:39 PST
Attachment 74508
[details]
did not build on chromium: Build output:
http://queues.webkit.org/results/6141110
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.
Top of Page
Format For Printing
XML
Clone This Bug