Index: third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js |
diff --git a/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js b/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js |
index fd142c2f023260d0afacf3970edcbc1f83667f4c..7f114ba57dded07a6a77ba40e524be8d96ce54f1 100644 |
--- a/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js |
+++ b/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js |
@@ -16,7 +16,13 @@ function generatePaintStyleLogging(properties) { |
const properties = styleMap.getProperties().sort(); |
for (let i = 0; i < properties.length; i++) { |
const value = styleMap.get(properties[i]); |
- console.log(properties[i] + ': ' + (value ? value.cssText: '[null]')); |
+ let serialized; |
+ if (value) { |
+ serialized = '[' + value.constructor.name + '=' + value.cssText + ']'; |
+ } else { |
+ serialized = '[null]'; |
+ } |
+ console.log(properties[i] + ': ' + serialized); |
} |
} |
}); |