DescriptionFix crash in ApplyStyleCommand::applyRelativeFontStyleChange()
Fix crash in ApplyStyleCommand::applyRelativeFontStyleChange(). The issue was
that we would traverse the DOM tree past the beyondEnd under some circumstances
and thus NodeTraversal::next() would return null unexpectedly. This CL adds a
check to make sure startNode != beyondEnd before traversing to avoid the
problem.
This CL also adds a few more assertions to catch similar issues more easily in
the future.
R=leviw@chromium.org, adamk
BUG=345950
TEST=editing/style/apply-style-crash2.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167845
Patch Set 1 #
Total comments: 3
Patch Set 2 : Reduce layout test #
Messages
Total messages: 9 (0 generated)
|