Add #if PLATFORM(DOM) in a missing place in CPView.

This commit is contained in:
Ross Boucher
2010-03-03 19:42:16 -08:00
parent 2f68804279
commit 3cd763aabb
+4 -1
View File
@@ -528,6 +528,7 @@ var CPViewFlags = { },
_subviews = [newSubviews copy];
#if PLATFORM(DOM)
var index = 0,
count = [_subviews count];
@@ -538,6 +539,7 @@ var CPViewFlags = { },
CPDOMDisplayServerRemoveChild(_DOMElement, subview._DOMElement);
CPDOMDisplayServerAppendChild(_DOMElement, subview._DOMElement);
}
#endif
}
/* @ignore */
@@ -1756,8 +1758,9 @@ setBoundsOrigin:
_DOMContentsElement.style.width = ROUND(_CGRectGetWidth(_frame)) + "px";
_DOMContentsElement.style.height = ROUND(_CGRectGetHeight(_frame)) + "px";
#if PLATFORM(DOM)
CPDOMDisplayServerAppendChild(_DOMElement, _DOMContentsElement);
#endif
_graphicsContext = [CPGraphicsContext graphicsContextWithGraphicsPort:graphicsPort flipped:YES];
}