 						}
 					}
 					applyStyles();
-					if (m_currentStyles.width != oldWidth || 
-						m_currentStyles.height != oldHeight)
+					if (m_currentStyles.width != m_oldContentBoxWidth || 
+						m_currentStyles.height != m_oldContentBoxHeight)
 					{
 						m_specifiedDimensionsChanged = true;
 					}

				return;
			}
			
			var oldContentBoxHeight : int = m_contentBoxHeight;
			var oldContentBoxWidth : int = m_contentBoxWidth;
			
			applyInFlowChildPositions();
			
			measure();

					}
					else
					{
						//TODO: deal with inline elements adapting to the intermittend sizes, 
						//changing the intrinsic width
						m_weakStyles.setStyle('width', m_intrinsicWidth + 'px', true);
						m_specifiedStyles.setStyle('width', m_oldContentBoxWidth + 'px');
						m_contentBoxWidth = m_oldContentBoxWidth;
						m_invalidateStylesAfterValidation = true;
						m_stylesInvalidated = true;
						invalidate();
