DescriptionAvoid calling Node::numberOfScopedHTMLStyleChildren() to check for existence
Avoid calling Node::numberOfScopedHTMLStyleChildren() to check for existence as
we don't want to traverse all children merely to check for the existence
of 1 child. Node::hasScopedHTMLStyleChild() can be used to check this instead
as we have a dedicated flag for this. Also, don't unnecessarily traverse all
children to set the HasScopedHTMLStyleChildFlag, and break early instead as
soon as one child is found.
R=adamk, eseidel
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167728
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|