Make ApplyStyleCommand::UpdateStartEnd to take EphemeralRange
UpdateStartEnd takes start and end position as parameters, and then does a DCHECK_LE for start and end. EphemeralRange constructor also does same DCHECK. Since UpdateStartEnd is called from many places, so to catch a bug at the call site, function UpdateStartEnd is made to take EphemeralRange instead. Bug: 826106 Change-Id: I6e1cd23e9aac2846a2f083cd6f4d8110fa3a9085 Reviewed-on: https://chromium-review.googlesource.com/989852Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Tanvir Rizvi <tanvir.rizvi@samsung.com> Cr-Commit-Position: refs/heads/master@{#547668}
Showing
Please register or sign in to comment