mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 277034 - large svg documents don't display scrollbars. r+sr=bzbarsky
This commit is contained in:
parent
136eda6655
commit
fcc6992879
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user