mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
make dom protection more stringent
This commit is contained in:
1 parent
a3b4e8db44
commit
1a8a9f0047
1 file changed
+1
-1
@@ -80,6 +80,7 @@ CPStringSizeCachingEnabled = YES;
|
||||
|
||||
- (CGSize)sizeWithFont:(CPFont)aFont inWidth:(float)aWidth
|
||||
{
|
||||
#if PLATFORM(DOM)
|
||||
if (!CPStringSizeCachingEnabled)
|
||||
return [CPPlatformString sizeOfString:self withFont:aFont forWidth:aWidth];
|
||||
|
||||
@@ -93,7 +94,6 @@ CPStringSizeCachingEnabled = YES;
|
||||
if (size !== undefined)
|
||||
return CGSizeMakeCopy(size);
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
if (!CPStringSizeDidTestCanvasSizingValid)
|
||||
{
|
||||
[self _initializeStringSizing];
|
||||
|
||||
Reference in new issue
Block a user