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