Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Issue 2848823002: Add DCHECK() to check ApplyStyleCommand::DoApply() to work on non-null range (Closed)

Created:
3 years, 7 months ago by yosin_UTC9
Modified:
3 years, 7 months ago
Reviewers:
yoichio, Xiaocheng
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
yosin_UTC9
PTAL Please click [Commit] button since I'm OOO until May 8. Thanks!
3 years, 7 months ago (2017-04-28 07:22:14 UTC) #8
Xiaocheng
lgtm
3 years, 7 months ago (2017-04-28 18:42:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2848823002/1
3 years, 7 months ago (2017-04-28 18:43:20 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 18:55:38 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4109e96377e75873e2e923084643...

Powered by Google App Engine
This is Rietveld 408576698