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

Issue 2537363002: Handling firstRectForCharacterRange when range argument has invalid range (Mac) (Closed)

Created:
4 years ago by EhsanK
Modified:
4 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handling firstRectForCharacterRange when range argument has invalid range (Mac) When the value of requested range is invalid, the TextInputClientObserver will return the rect corresponding to the current cursor position instead. BUG=664679 Committed: https://crrev.com/98dc75fb675ed90a69f1cb29d724bab7aa9650ef Cr-Commit-Position: refs/heads/master@{#435691}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Using isNull() instead of comparing agains -1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M content/renderer/text_input_client_observer.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
EhsanK
erikchen@ Could you please take a look at this change? I wonder if this way ...
4 years ago (2016-11-29 23:48:06 UTC) #4
erikchen
https://codereview.chromium.org/2537363002/diff/1/content/renderer/text_input_client_observer.cc File content/renderer/text_input_client_observer.cc (right): https://codereview.chromium.org/2537363002/diff/1/content/renderer/text_input_client_observer.cc#newcode32 content/renderer/text_input_client_observer.cc:32: return range.startOffset() != -1 ? static_cast<uint32_t>(range.startOffset()) should this be ...
4 years ago (2016-11-30 15:24:33 UTC) #7
EhsanK
PTAL. Thanks! https://codereview.chromium.org/2537363002/diff/1/content/renderer/text_input_client_observer.cc File content/renderer/text_input_client_observer.cc (right): https://codereview.chromium.org/2537363002/diff/1/content/renderer/text_input_client_observer.cc#newcode32 content/renderer/text_input_client_observer.cc:32: return range.startOffset() != -1 ? static_cast<uint32_t>(range.startOffset()) On ...
4 years ago (2016-11-30 16:40:52 UTC) #10
erikchen
lgtm
4 years ago (2016-11-30 16:52:12 UTC) #11
EhsanK
Thanks Erik! Adding avi@ as the contnet/ owner reviewer. Avi, could you please take a ...
4 years ago (2016-11-30 17:16:19 UTC) #13
Avi (use Gerrit)
lgtm
4 years ago (2016-12-01 18:40:13 UTC) #16
EhsanK
Thanks for the reviews!
4 years ago (2016-12-01 18:40:51 UTC) #17
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/2537363002/20001
4 years ago (2016-12-01 18:53:51 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-01 20:14:34 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-01 20:16:46 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/98dc75fb675ed90a69f1cb29d724bab7aa9650ef
Cr-Commit-Position: refs/heads/master@{#435691}

Powered by Google App Engine
This is Rietveld 408576698