.
Created attachment 433102 [details] Patch
Comment on attachment 433102 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433102&action=review > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:4136 > +const char* GraphicsLayerCA::layerChangeAsString(LayerChange layerChange) This is better implemented as TextStream& operator<<(TextStream&, LayerChange)
I wanted to but struggled with the enum being private.
Comment on attachment 433102 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=433102&action=review > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:4207 > + bool first = true; > + while (layerChangeFlags) { > + if (layerChangeFlags & bit) { > + textStream << (first ? " " : ", ") << layerChangeAsString(static_cast<LayerChange>(bit)); > + first = false; > + } > + layerChangeFlags &= ~bit; > + bit <<= 1; > + } > + textStream << " }"; Shame that LayerChangeFlags isn' an OptionSet<> because they you wouldn't need this either.
Will do that later. https://bugs.webkit.org/show_bug.cgi?id=227787
Committed r279712 (239504@main): <https://commits.webkit.org/239504@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 433102 [details].
<rdar://problem/80308784>