-
Notifications
You must be signed in to change notification settings - Fork 28.6k
(Update and) Integrate Rendering README into code #10389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/// Update the semantics for render objects marked as needing a semantics | ||
/// upadate. | ||
/// | ||
/// Initially, only the root node, as scheduled by [scheduleInitialSemantics]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: period should be a comma
@@ -1180,7 +1204,11 @@ class PipelineOwner { | |||
bool _debugDoingSemantics = false; | |||
final List<RenderObject> _nodesNeedingSemantics = <RenderObject>[]; | |||
|
|||
/// Update the semantics for all render objects. | |||
/// Update the semantics for render objects marked as needing a semantics | |||
/// upadate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
@@ -2533,8 +2574,10 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget { | |||
if (annotator != null) | |||
return new _ImplicitSemanticsFragment(renderObjectOwner: this, annotator: annotator, children: children); | |||
_semantics = null; | |||
if (children == null) | |||
if (children == null) { | |||
// Introduces no semantics and has no descendants that introduce semantic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add "s." to the end of this line
@@ -2547,6 +2590,9 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget { | |||
/// | |||
/// The default implementation mirrors the behavior of | |||
/// [visitChildren()] (which is supposed to walk all the children). | |||
/// | |||
/// The implementation has to return the children in paint order skipping all | |||
/// children that are not relevant for semantics. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These three paragraphs should be tweaked a bit, they're a bit repetitive right now.
No description provided.