Reviewed by Hyatt.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Nov 2006 01:15:33 +0000 (01:15 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Nov 2006 01:15:33 +0000 (01:15 +0000)
        Check for BHIDDEN in isVisible() also.

        * rendering/RenderStyle.h:
        (WebCore::BorderValue::isVisible):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17717 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/RenderStyle.h

index e320e9ddcdb3270b97ba914a248c6985c6c21944..35c63b51cbdc5662b7db1ae5e6949f3d3fb7ec0a 100644 (file)
@@ -1,3 +1,12 @@
+2006-11-10  Timothy Hatcher  <timothy@apple.com>
+
+        Reviewed by Hyatt.
+
+        Check for BHIDDEN in isVisible() also.
+
+        * rendering/RenderStyle.h:
+        (WebCore::BorderValue::isVisible):
+
 2006-11-10  Timothy Hatcher  <timothy@apple.com>
 
         Reviewed by Adam.
index ad10bc139e3327a8b950050f85c23484c6f23c2e..cc6567687d582ccd94eb94ea124ce0f43a2a174f 100644 (file)
@@ -149,7 +149,7 @@ public:
     }
 
     bool isVisible(bool checkStyle = true) const {
-        return nonZero(checkStyle) && !isTransparent();
+        return nonZero(checkStyle) && !isTransparent() && (!checkStyle || m_style != BHIDDEN);
     }
 
     bool operator==(const BorderValue& o) const