mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-16 11:40:42 +00:00
fix dom protection
This commit is contained in:
1 parent
1a8a9f0047
commit
af7de73f5c
1 file changed
+2
-2
@@ -114,11 +114,11 @@ CPStringSizeCachingEnabled = YES;
|
||||
|
||||
size = CGSizeMake(CPStringSizeMeasuringContext.measureText(self).width, fontHeight);
|
||||
}
|
||||
|
||||
CPStringSizeWithFontInWidthCache[self][cacheKey] = size;
|
||||
#else
|
||||
size = CGSizeMake(0, 0);
|
||||
#endif
|
||||
|
||||
CPStringSizeWithFontInWidthCache[self][cacheKey] = size;
|
||||
return CGSizeMakeCopy(size);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user