Add toString() for paint property node classes
This extracts the common code in PaintPropertyTreePrinter.cpp and
PaintPrinters.cpp.
This provides convenient way to dump paint property nodes in debugging
or DCHECK code. I plan to use this in FindPropertiesNeedingUpdate.
The added code is compiled unconditionally but can be removed by
the linker in production because they are not actually used in
production code.
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Committed:
https://crrev.com/a711a5d7b4589476e0da0477c9b961b72d241eff
Cr-Commit-Position: refs/heads/master@{#438378}