User:Cgomes7/patch2.patch
Accept ';' as Seperator
diff --git a/layout/generic/nsImageMap.cpp b/layout/generic/nsImageMap.cpp --- a/layout/generic/nsImageMap.cpp +++ b/layout/generic/nsImageMap.cpp @@ -107,22 +107,17 @@ Area::~Area() delete [] mCoords; } #include <stdlib.h> inline PRBool is_space(char c) { - return (c == ' ' || - c == '\f' || - c == '\n' || - c == '\r' || - c == '\t' || - c == '\v'); + return (c == ' '); } static void logMessage(nsIContent* aContent, const nsAString& aCoordsSpec, PRInt32 aFlags, const char* aMessageName) { nsIDocument* doc = aContent->GetOwnerDoc(); @@ -181,20 +176,24 @@ void Area::ParseCoords(const nsAString& while (*n_str != '\0') { PRBool has_comma; /* * Skip to a separator */ tptr = n_str; - while (!is_space(*tptr) && *tptr != ',' && *tptr != '\0') + while (!is_space(*tptr) && *tptr != ',' && *tptr != ';' && *tptr != '\0') { tptr++; } + if (*tptr == ';') + { + *tptr = ','; + } n_str = tptr; /* * If no more entries, break out here */ if (*n_str == '\0') { break;