Include Semantics Node in debugDumpRenderTree, if available (#10338)
Makes debugging semantics easier (e.g. which RenderObject has semantics, where is a SemanticNode seen in the semantic tree comming from, etc). It's only printed if accessibility is turned on.
This commit is contained in:
committed by
GitHub
parent
f68c6fb814
commit
307f3569a2
@@ -2680,6 +2680,8 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
|
||||
description.add('constraints: $constraints');
|
||||
if (_layer != null) // don't access it via the "layer" getter since that's only valid when we don't need paint
|
||||
description.add('layer: $_layer');
|
||||
if (_semantics != null)
|
||||
description.add('semantics: $_semantics');
|
||||
}
|
||||
|
||||
/// Returns a string describing the current node's descendants. Each line of
|
||||
|
||||
Reference in New Issue
Block a user