Fix for 4030890, regression with <sup> on Google. Fix some bogus != comparison...
[WebKit-https.git] / WebCore / khtml / rendering / render_object.cpp
index c03cae6d73fe2b5005bb2b103dd1a9a8e5d61c54..dcaf0eab7e4b65dc6afdc96dae033e76e8f279ff 100644 (file)
@@ -1968,7 +1968,7 @@ short RenderObject::getVerticalPosition( bool firstLine ) const
     } else if ( va == LENGTH ) {
         vpos = -style()->verticalAlignLength().width( lineHeight( firstLine ) );
     } else  {
-        bool checkParent = parent()->isInline() && !parent()->isInlineBlockOrInlineTable() && !parent()->style()->verticalAlign() == TOP && !parent()->style()->verticalAlign() == BOTTOM;
+        bool checkParent = parent()->isInline() && !parent()->isInlineBlockOrInlineTable() && parent()->style()->verticalAlign() != TOP && parent()->style()->verticalAlign() != BOTTOM;
         vpos = checkParent ? parent()->verticalPositionHint( firstLine ) : 0;
         // don't allow elements nested inside text-top to have a different valignment.
         if ( va == BASELINE )