RESOLVED FIXED 71081
Move type-specific exception descriptions into the implementation files for each type
https://bugs.webkit.org/show_bug.cgi?id=71081
Summary Move type-specific exception descriptions into the implementation files for e...
Adam Barth
Reported 2011-10-27 16:38:52 PDT
Move type-specific exception descriptions into the implementation files for each type
Attachments
Patch (73.83 KB, patch)
2011-10-27 16:39 PDT, Adam Barth
no flags
Patch (92.91 KB, patch)
2011-10-27 17:58 PDT, Adam Barth
no flags
Patch (91.71 KB, patch)
2011-10-27 18:04 PDT, Adam Barth
no flags
Patch (91.85 KB, patch)
2011-10-27 18:22 PDT, Adam Barth
no flags
Patch (91.92 KB, patch)
2011-10-27 18:24 PDT, Adam Barth
no flags
Adam Barth
Comment 1 2011-10-27 16:39:48 PDT
Eric Seidel (no email)
Comment 2 2011-10-27 16:42:15 PDT
Comment on attachment 112782 [details] Patch crazy. Looks fine if EWS says it's fine.
Adam Barth
Comment 3 2011-10-27 17:58:55 PDT
Eric Seidel (no email)
Comment 4 2011-10-27 18:03:17 PDT
Comment on attachment 112794 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=112794&action=review LGTM. > Source/WebCore/dom/EventException.cpp:54 > + description->typeName = "DOM Events"; > + description->code = ec - EventExceptionOffset; > + description->type = EventExceptionType; So strange that we're passed in a Description, instead of returning one. Then it's constructor could do all this jazz. I guess we could have a fill() function until then.
Adam Barth
Comment 5 2011-10-27 18:04:13 PDT
Gyuyoung Kim
Comment 6 2011-10-27 18:15:24 PDT
Adam Barth
Comment 7 2011-10-27 18:15:58 PDT
Adam Barth
Comment 8 2011-10-27 18:22:16 PDT
Adam Barth
Comment 9 2011-10-27 18:24:01 PDT
Eric Seidel (no email)
Comment 10 2011-10-27 19:49:39 PDT
Comment on attachment 112803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=112803&action=review Our build system(s) setup is epicly bad. We really need to end this madness. > Source/WebCore/dom/DOMCoreException.cpp:34 > +// FIXME: This should be an array of structs to pair the names and descriptions. Thank you for adding this. > Source/WebCore/dom/DOMCoreException.cpp:104 > + description->typeName = "DOM"; > + description->code = ec; > + description->type = DOMExceptionType; > + > + size_t tableSize = WTF_ARRAY_LENGTH(coreExceptionNames); > + size_t tableIndex = ec - INDEX_SIZE_ERR; > + > + description->name = tableIndex < tableSize ? coreExceptionNames[tableIndex] : 0; > + description->description = tableIndex < tableSize ? coreExceptionDescriptions[tableIndex] : 0; This should be some sort of constructor or "fill" method in a later iteration of this cleanup.
Adam Barth
Comment 11 2011-10-27 21:44:42 PDT
Note You need to log in before you can comment on or make changes to this bug.