From 3cd763aabb46d56d3cbb9cd2095d3f7f99f19958 Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Wed, 3 Mar 2010 19:42:16 -0800 Subject: [PATCH] Add #if PLATFORM(DOM) in a missing place in CPView. --- AppKit/CPView.j | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index a04a4dc59..90685cb6c 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -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]; }