Changes

Jump to: navigation, search

User:Minooz/OSD600/FF/patch565031

520 bytes removed, 19:52, 9 April 2011
no edit summary
 
 
<source lang="java">
 diff -r ec44e31cc46b e6b318aca788 layout/generic/nsImageMap.cpp--- a/layout/generic/nsImageMap.cpp Wed Mar 30 20Apr 06 17:4838:32 21 2011 -04000700+++ b/layout/generic/nsImageMap.cpp Wed Sat Apr 06 2209 20:1150:22 51 2011 -0400@@ -107112,18 12 +107112,21 7 @@ 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,@@ -181186,21 12 +184181,33 17 @@ 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 (not_space(*tptr))+ {+ break;+ }+ else + {+ tptr++;+ }
}
n_str = tptr;
+
+ if (*tptr == ';')
+ {
+ *tptr = ',';
+ }
/*
* If no more entries, break out here
*/
if (*n_str == '\0') { break; }@@ -256205,17 7 +271205,17 7 @@ void Area::ParseCoords(const nsAString& { return; } / * * Second pass to copy integer values into listcomma. */ tptr has_comma = cpPR_FALSE;- for while (iis_space(*tptr) || *tptr ==0; i<cnt; i++',')+ for while (i = 0; i < cnt; i++is_space(*tptr) { char || *ptr; ptr tptr == strchr(tptr', ',|| *tptr == '); if (ptr')
{
if (*ptr tptr == '\0,'; }) {
</source>
1
edit

Navigation menu