WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
Bug 28274
off-by-one typo in V8DOMWindowCustom.cpp
https://bugs.webkit.org/show_bug.cgi?id=28274
Summary
off-by-one typo in V8DOMWindowCustom.cpp
John Gregg
Reported
2009-08-13 12:26:36 PDT
Ran across this while investigating event-handler bindings. Maybe I misunderstand the point of this function, but as best as I can tell it's just changing the capitalization of the various webkit* event names. If that's true and the 'a' is meant to catch the beginning of "animation", the [7] should really be a [6]. static String eventNameFromAttributeName(const String& name) { ASSERT(name.startsWith("on")); String eventType = name.substring(2); if (eventType.startsWith("w")) { switch(eventType[eventType.length() - 1]) { case 't': eventType = "webkitAnimationStart"; break; case 'n': eventType = "webkitAnimationIteration"; break; case 'd': ASSERT(eventType.length() > 7); if (eventType[7] == 'a') eventType = "webkitAnimationEnd"; else eventType = "webkitTransitionEnd"; break; } } return eventType; }
Attachments
fix for off-by-one error
(1.28 KB, patch)
2009-08-13 14:42 PDT
,
John Gregg
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
John Gregg
Comment 1
2009-08-13 14:42:41 PDT
Created
attachment 34790
[details]
fix for off-by-one error Here's a fix if I interpreted this correctly.
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