Bug 1238564 - Include mIsAsyncScrollable information in DisplayItemScrollClip::ToString. r=roc a=lizzard
authorMarkus Stange <mstange@themasta.com>
Wed, 24 Feb 2016 16:23:32 +0100
changeset 351209 8c7f3ce9707752ed669d671fd0d6ecb76ee34f85
parent 351208 c18e583d488d94bafef3e0c2e9482929b32cf81e
child 351210 9b8ac76a72bd640227e48828bebc607ece0bfde7
push id15502
push userahunt@mozilla.com
push dateThu, 14 Apr 2016 20:27:48 +0000
reviewersroc, lizzard
bugs1238564
milestone47.0a2
Bug 1238564 - Include mIsAsyncScrollable information in DisplayItemScrollClip::ToString. r=roc a=lizzard MozReview-Commit-ID: 7R38KtIjM5q
layout/base/DisplayItemScrollClip.cpp
--- a/layout/base/DisplayItemScrollClip.cpp
+++ b/layout/base/DisplayItemScrollClip.cpp
@@ -28,17 +28,18 @@ DisplayItemScrollClip::IsAncestor(const 
 }
 
 /* static */ nsCString
 DisplayItemScrollClip::ToString(const DisplayItemScrollClip* aScrollClip)
 {
   nsAutoCString str;
   for (const DisplayItemScrollClip* scrollClip = aScrollClip;
        scrollClip; scrollClip = scrollClip->mParent) {
-    str.AppendPrintf("<%s>", scrollClip->mClip ? scrollClip->mClip->ToString().get() : "null");
+    str.AppendPrintf("<%s>%s", scrollClip->mClip ? scrollClip->mClip->ToString().get() : "null",
+                     scrollClip->mIsAsyncScrollable ? " [async-scrollable]" : "");
     if (scrollClip->mParent) {
-      str.Append(" ");
+      str.Append(", ");
     }
   }
   return str;
 }
 
 } // namespace mozilla