Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / graphics / GraphicsLayerDebugInfo.cpp
index 325145a..27dfa3d 100644 (file)
@@ -70,12 +70,12 @@ void GraphicsLayerDebugInfo::appendLayoutRects(JSONObject* jsonObject) const
 void GraphicsLayerDebugInfo::appendCompositingReasons(JSONObject* jsonObject) const
 {
     RefPtr<JSONArray> jsonArray = JSONArray::create();
-
     for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonStringMap); ++i) {
         if (!(m_compositingReasons & compositingReasonStringMap[i].reason))
             continue;
         jsonArray->pushString(compositingReasonStringMap[i].description);
     }
+    jsonObject->setArray("compositing_reasons", jsonArray);
 }
 
 void GraphicsLayerDebugInfo::appendDebugName(JSONObject* jsonObject) const