Bug 277034 - large svg documents don't display scrollbars. r+sr=bzbarsky

This commit is contained in:
tor%cs.brown.edu 2005-01-05 05:49:35 +00:00
parent 136eda6655
commit fcc6992879

View File

@ -3752,6 +3752,14 @@ nsCSSFrameConstructor::PropagateScrollToViewport(nsPresContext* aPresContext)
nsIContent* docElement = mDocument->GetRootContent();
#ifdef MOZ_SVG
// Per the SVG specification overflow should be ignored on an
// outermost stand-alone <svg> (SVG document). Sixth bullet.
// http://www.w3.org/TR/SVG11/masking.html#OverflowAndClipProperties
if (docElement->IsContentOfType(nsIContent::eSVG))
return nsnull;
#endif
// Check the style on the document root element
nsStyleSet *styleSet = aPresContext->PresShell()->StyleSet();
nsRefPtr<nsStyleContext> rootStyle;