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

Issue 1839613002: Move LayoutObject::previousOffsetForBackwardDeletion() to editing. (Closed)

Created:
4 years, 8 months ago by Seigo Nonaka
Modified:
4 years, 8 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move LayoutObject::previousOffsetForBackwardDeletion() to editing. Move LayoutObject::previousOffsetForBackwardDeletion to EditingUtilities.cpp This CL also introduces some tests for existing behaviors. BUG=594920 Committed: https://crrev.com/0d0b68569b4cfc83150bfd3114c0c2d53d70b14c Cr-Commit-Position: refs/heads/master@{#383686}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use Unicode.h instead of direct use of third_party #

Total comments: 2

Patch Set 3 : replace CHECK with DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -23 lines) Patch
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp View 1 chunk +98 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Seigo Nonaka
Hi Yosi-san, Could you kindly take a look? Thank you.
4 years, 8 months ago (2016-03-28 07:52:21 UTC) #2
yosin_UTC9
lgtm +tkent@ for core.gypi and core/layout review This patch is split from crrev.com/1832343002 https://codereview.chromium.org/1839613002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.h File ...
4 years, 8 months ago (2016-03-28 09:13:04 UTC) #4
tkent
https://codereview.chromium.org/1839613002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1839613002/diff/1/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode55 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:55: #include "third_party/icu/source/common/unicode/utf16.h" I think wtf/unicode/Unicode.h provides U16_IS_TRAIL.
4 years, 8 months ago (2016-03-29 00:00:48 UTC) #5
Seigo Nonaka
Thank you for your review. By using Unicode.h I can avoid adding an entry to ...
4 years, 8 months ago (2016-03-29 04:38:47 UTC) #6
tkent
lgtm. One nit. https://codereview.chromium.org/1839613002/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1839613002/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode569 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:569: CHECK(static_cast<unsigned>(current - 1) < text.length()); Should ...
4 years, 8 months ago (2016-03-29 04:58:10 UTC) #7
Seigo Nonaka
Thank you for your review. Submitting... https://codereview.chromium.org/1839613002/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/1839613002/diff/20001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode569 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:569: CHECK(static_cast<unsigned>(current - 1) ...
4 years, 8 months ago (2016-03-29 06:12:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839613002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839613002/40001
4 years, 8 months ago (2016-03-29 06:12:17 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-29 07:34:10 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 07:35:47 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0d0b68569b4cfc83150bfd3114c0c2d53d70b14c
Cr-Commit-Position: refs/heads/master@{#383686}

Powered by Google App Engine
This is Rietveld 408576698