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

Issue 23450030: Introduce Position::inDocument() (Closed)

Created:
7 years, 3 months ago by yosin_UTC9
Modified:
7 years, 3 months ago
Reviewers:
tkent
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, groby+blinkspell_chromium.org
Visibility:
Public.

Description

Introduce Position::inDocument() This patch introduces Position::inDocument() to replace Position::anchorNode()->inDocument() for shorter code pattern and safety for avoiding null reference. BUG=n/a TEST=n/a; no behavior changes R=tkent@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157513

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -18 lines) Patch
M Source/core/dom/Position.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/ApplyBlockElementCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/DeleteSelectionCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/Editor.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/editing/IndentOutdentCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/InsertListCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/InsertTextCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/MoveSelectionCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance.
7 years, 3 months ago (2013-09-10 08:08:21 UTC) #1
tkent
lgtm
7 years, 3 months ago (2013-09-10 08:13:47 UTC) #2
yosin_UTC9
7 years, 3 months ago (2013-09-10 08:17:44 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r157513 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698