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

Issue 2332723002: Audit the use of updateStyleAndLayoutIgnorePendingStylesheets in canonicalPosition (Closed)

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

Description

Audit the use of updateStyleAndLayoutIgnorePendingStylesheets in canonicalPosition BUG=590369 Committed: https://crrev.com/5b063f4100b552bf982465635c5179f5d3569f9b Cr-Commit-Position: refs/heads/master@{#417916}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change if to DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/VisiblePosition.cpp View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (6 generated)
Xiaocheng
PTAL.
4 years, 3 months ago (2016-09-12 09:19:00 UTC) #4
yosin_UTC9
lgtm https://codereview.chromium.org/2332723002/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2332723002/diff/1/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1243 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1243: if (position1.position().document() != position2.position().document()) Could you change this ...
4 years, 3 months ago (2016-09-12 09:25:03 UTC) #5
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/2332723002/20001
4 years, 3 months ago (2016-09-12 09:36:44 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-12 11:02:19 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/5b063f4100b552bf982465635c5179f5d3569f9b Cr-Commit-Position: refs/heads/master@{#417916}
4 years, 3 months ago (2016-09-12 11:04:25 UTC) #11
Xiaocheng
4 years, 3 months ago (2016-09-12 11:20:49 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2332723002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right):

https://codereview.chromium.org/2332723002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1243: if
(position1.position().document() != position2.position().document())
On 2016/09/12 at 09:25:03, Yosi_UTC9 wrote:
> Could you change this to DCHEC_EQ(position1.position().document(),
position2.position().document())?

Done.

Haven't found any call site that may compare two positions in different
documents. And it's also weird if there is any.

Powered by Google App Engine
This is Rietveld 408576698