From 9fdb0cfc22ff3ed7301f9fd49da29e2bda16022d Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Sun, 6 Apr 2003 20:14:54 +0000 Subject: [PATCH] Bug 198479. nsFrameOuterFrame doesn't actually handle CSS 'visibility', just hide its view. r+sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@140768 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsFrameFrame.cpp | 6 ++++++ mozilla/layout/html/document/src/nsFrameFrame.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/mozilla/layout/generic/nsFrameFrame.cpp b/mozilla/layout/generic/nsFrameFrame.cpp index 073142efe89..3aa7c6c9a57 100644 --- a/mozilla/layout/generic/nsFrameFrame.cpp +++ b/mozilla/layout/generic/nsFrameFrame.cpp @@ -173,6 +173,12 @@ public: PRInt32 aModType, PRInt32 aHint); + // if the content is "visibility:hidden", then just hide the view + // and all our contents. We don't extend "visibility:hidden" to + // the child content ourselves, since it belongs to a different + // document and CSS doesn't inherit in there. + virtual PRBool SupportsVisibilityHidden() { return PR_FALSE; } + #ifdef ACCESSIBILITY NS_IMETHOD GetAccessible(nsIAccessible** aAccessible); #endif diff --git a/mozilla/layout/html/document/src/nsFrameFrame.cpp b/mozilla/layout/html/document/src/nsFrameFrame.cpp index 073142efe89..3aa7c6c9a57 100644 --- a/mozilla/layout/html/document/src/nsFrameFrame.cpp +++ b/mozilla/layout/html/document/src/nsFrameFrame.cpp @@ -173,6 +173,12 @@ public: PRInt32 aModType, PRInt32 aHint); + // if the content is "visibility:hidden", then just hide the view + // and all our contents. We don't extend "visibility:hidden" to + // the child content ourselves, since it belongs to a different + // document and CSS doesn't inherit in there. + virtual PRBool SupportsVisibilityHidden() { return PR_FALSE; } + #ifdef ACCESSIBILITY NS_IMETHOD GetAccessible(nsIAccessible** aAccessible); #endif