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 323485 8c7f3ce9707752ed669d671fd0d6ecb76ee34f85
parent 323484 c18e583d488d94bafef3e0c2e9482929b32cf81e
child 323486 9b8ac76a72bd640227e48828bebc607ece0bfde7
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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