Invalidate text metrics when the <text> subtree is mutated
When the content of a text node is modified, we would only invalidate
positioning values and not text metrics. This would lead to incorrect or
inconsistent text metrics/fonts being used, which would lead to repaint
bugs and similar issues.
Make sure all mutations to the <text> subtree trigger text metrics re-
computation.
Also take this opportunity to move the definition of the
willBeDestroyed() method for slightly better grouping.
BUG=299497, 594058
Review URL: https://codereview.chromium.org/1865923002
Cr-Commit-Position: refs/heads/master@{#386300}
2 files changed