[Webkit-unassigned] [Bug 28274] New: off-by-one typo in V8DOMWindowCustom.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 13 12:26:37 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28274
Summary: off-by-one typo in V8DOMWindowCustom.cpp
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Trivial
Priority: P4
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: johnnyg at google.com
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;
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list