Bug 637852. Part 20: Allow fast scrolling within transformed content. r=tnikkel
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 23 Jun 2011 00:11:28 +1200
changeset 71809 c9f644aa2fa58dba7e98639e2df87742be54c222
parent 71808 e96e2e5829cd244abcffa8ca6f95807e523eb234
child 71810 3d7fda340878b309996c11c7cc0c94f1ac7b11aa
push idunknown
push userunknown
push dateunknown
reviewerstnikkel
bugs637852
milestone7.0a1
Bug 637852. Part 20: Allow fast scrolling within transformed content. r=tnikkel This lets us easily test scrolling with non-identity resolution.
layout/generic/nsGfxScrollFrame.cpp
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -1629,19 +1629,16 @@ static void AdjustViews(nsIFrame* aFrame
   } while (childListName);
 }
 
 static PRBool
 CanScrollWithBlitting(nsIFrame* aFrame)
 {
   for (nsIFrame* f = aFrame; f;
        f = nsLayoutUtils::GetCrossDocParentFrame(f)) {
-    if (f->GetStyleDisplay()->HasTransform()) {
-      return PR_FALSE;
-    }
     if (nsSVGIntegrationUtils::UsingEffectsForFrame(f) ||
         f->IsFrameOfType(nsIFrame::eSVG)) {
       return PR_FALSE;
     }
     nsIScrollableFrame* sf = do_QueryFrame(f);
     if (sf && nsLayoutUtils::HasNonZeroCorner(f->GetStyleBorder()->mBorderRadius))
       return PR_FALSE;
     if (nsLayoutUtils::IsPopup(f))