DescriptionAdd DCHECK() to check ApplyStyleCommand::DoApply() to work on non-null range
This patch add DCHECK into |ApplyStyleCommand::DoApply()| to verify that we
don't apply |ApplyStyleCommand| to empty range to detect redundant command
execution for improving code health.
Actually, |ApplyStyleCommand::DoApply()| doesn't work with empty range, it
causes DCHECK for |Position.IsNull()| in |ComparePositions()|.
BUG=714311
TEST=n/a; no behavior changes
Review-Url: https://codereview.chromium.org/2848823002
Cr-Commit-Position: refs/heads/master@{#468077}
Committed: https://chromium.googlesource.com/chromium/src/+/4109e96377e75873e2e92308464313c0ff8f8008
Patch Set 1 : 2017-04-28T14:02:57 #
Messages
Total messages: 14 (10 generated)
|