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

Issue 10656019: Use cached composition bounds for firstRectForCharacterRange (Closed)

Created:
8 years, 6 months ago by Seigo Nonaka
Modified:
8 years, 5 months ago
Reviewers:
James Su, Nico, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, jochen+watch-content_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, horo, Robert Sesek
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Use cached composition bounds for firstRectForCharacterRange if possible. This CL fixes(or reduces) mac dead-lock issue. Browser process uses synchronous IPC for firstRectForCharacterRange request, but also renderer process uses synchronous IPC for some reasons. This CL changes from using synchronous IPC to using cached composition character rectangle in browser process if possible. BUG=115920 TEST=try bot and manually done on Lion Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147843

Patch Set 1 : CL for review #

Patch Set 2 : Refine comments #

Patch Set 3 : fix range state #

Patch Set 4 : WIP #

Patch Set 5 : WIP #

Patch Set 6 : WIP: remaining task is unittest #

Patch Set 7 : WIP: need to fix style violation #

Patch Set 8 : CL for review #

Patch Set 9 : Fix rebase miss #

Patch Set 10 : Fix style nits #

Patch Set 11 : Use sync call if there are no info. #

Total comments: 12

Patch Set 12 : Address comments #

Patch Set 13 : leave todo comment #

Total comments: 10

Patch Set 14 : Address comments #

Total comments: 6

Patch Set 15 : Address comments #

Total comments: 2

Patch Set 16 : Uses cached caret position if possible #

Patch Set 17 : Fix style nits #

Total comments: 12

Patch Set 18 : rebase #

Patch Set 19 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -5 lines) Patch
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +30 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +135 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +343 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Seigo Nonaka
8 years, 6 months ago (2012-06-25 17:06:28 UTC) #1
Seigo Nonaka
Sorry, please stop review. After discussion with horo@ and kinaba@, we will need more investigation ...
8 years, 6 months ago (2012-06-26 01:10:15 UTC) #2
James Su
I think they are two different issues. The approach I proposed should still be reasonable ...
8 years, 6 months ago (2012-06-26 02:48:57 UTC) #3
Seigo Nonaka
Sorry for late response. On 2012/06/26 02:48:57, James Su wrote: > I think they are ...
8 years, 5 months ago (2012-07-03 07:08:09 UTC) #4
Seigo Nonaka
Sorry this CL does not works well on Google Docs. I investigate the reason.
8 years, 5 months ago (2012-07-03 08:02:27 UTC) #5
James Su
I'll review your CL asap. But please fix one thing first: As far as I ...
8 years, 5 months ago (2012-07-03 10:33:16 UTC) #6
Seigo Nonaka
Sure, done. On 2012/07/03 10:33:16, James Su wrote: > I'll review your CL asap. But ...
8 years, 5 months ago (2012-07-03 12:57:34 UTC) #7
James Su
http://codereview.chromium.org/10656019/diff/18015/content/browser/renderer_host/render_widget_host_view_mac.h File content/browser/renderer_host/render_widget_host_view_mac.h (right): http://codereview.chromium.org/10656019/diff/18015/content/browser/renderer_host/render_widget_host_view_mac.h#newcode454 content/browser/renderer_host/render_widget_host_view_mac.h:454: gfx::Rect caret_rect_; caret_rect_ is not used at all. http://codereview.chromium.org/10656019/diff/18015/content/browser/renderer_host/render_widget_host_view_mac.mm ...
8 years, 5 months ago (2012-07-04 01:44:04 UTC) #8
Seigo Nonaka
http://codereview.chromium.org/10656019/diff/18015/content/browser/renderer_host/render_widget_host_view_mac.h File content/browser/renderer_host/render_widget_host_view_mac.h (right): http://codereview.chromium.org/10656019/diff/18015/content/browser/renderer_host/render_widget_host_view_mac.h#newcode454 content/browser/renderer_host/render_widget_host_view_mac.h:454: gfx::Rect caret_rect_; On 2012/07/04 01:44:04, James Su wrote: > ...
8 years, 5 months ago (2012-07-04 06:56:58 UTC) #9
James Su
http://codereview.chromium.org/10656019/diff/17010/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10656019/diff/17010/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1054 content/browser/renderer_host/render_widget_host_view_mac.mm:1054: // TODO(nona): Bidi support. Yes, Bidi supporting is a ...
8 years, 5 months ago (2012-07-05 01:44:25 UTC) #10
Seigo Nonaka
http://codereview.chromium.org/10656019/diff/17010/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10656019/diff/17010/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1054 content/browser/renderer_host/render_widget_host_view_mac.mm:1054: // TODO(nona): Bidi support. On 2012/07/05 01:44:26, James Su ...
8 years, 5 months ago (2012-07-05 06:59:45 UTC) #11
James Su
http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1080 content/browser/renderer_host/render_widget_host_view_mac.mm:1080: DCHECK(range.start() < composition_bounds_.size()); range.start and range.end might be equal ...
8 years, 5 months ago (2012-07-06 01:28:47 UTC) #12
Seigo Nonaka
http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1080 content/browser/renderer_host/render_widget_host_view_mac.mm:1080: DCHECK(range.start() < composition_bounds_.size()); On 2012/07/06 01:28:47, James Su wrote: ...
8 years, 5 months ago (2012-07-06 02:04:42 UTC) #13
James Su
http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1112 content/browser/renderer_host/render_widget_host_view_mac.mm:1112: if (composition_range_.is_empty()) On 2012/07/06 02:04:42, Seigo Nonaka wrote: > ...
8 years, 5 months ago (2012-07-06 02:17:23 UTC) #14
Seigo Nonaka
http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10656019/diff/21006/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1112 content/browser/renderer_host/render_widget_host_view_mac.mm:1112: if (composition_range_.is_empty()) On 2012/07/06 02:17:23, James Su wrote: > ...
8 years, 5 months ago (2012-07-06 05:31:11 UTC) #15
James Su
lgtm
8 years, 5 months ago (2012-07-06 10:48:18 UTC) #16
Seigo Nonaka
suzhe@: Thank you for your review and comments. +sky Hi sky@, could you review this ...
8 years, 5 months ago (2012-07-09 02:03:26 UTC) #17
Seigo Nonaka
suzhe@: Thank you for your review and comments. +sky Hi sky@, could you review this ...
8 years, 5 months ago (2012-07-09 02:03:45 UTC) #18
Seigo Nonaka
sky: ping, just in case. I'm sorry if you are not right person for this ...
8 years, 5 months ago (2012-07-12 15:11:34 UTC) #19
sky
I'm not a good person for this review. I recommend thakis.
8 years, 5 months ago (2012-07-16 17:13:02 UTC) #20
Seigo Nonaka
sky: thank you for your recommendation. +thakis Hi thakis, could you check this CL? Thanks.
8 years, 5 months ago (2012-07-16 17:28:02 UTC) #21
Nico
lgtm Sorry for the delay, I was on vacation. You should never have to wait ...
8 years, 5 months ago (2012-07-21 16:43:27 UTC) #22
Seigo Nonaka
Thank you very much. I will submit after checking try bots just in case. http://codereview.chromium.org/10656019/diff/18017/content/browser/renderer_host/render_widget_host_view_mac.h ...
8 years, 5 months ago (2012-07-23 08:36:55 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nona@chromium.org/10656019/35003
8 years, 5 months ago (2012-07-23 09:32:12 UTC) #24
commit-bot: I haz the power
Change committed as 147843
8 years, 5 months ago (2012-07-23 11:11:17 UTC) #25
Nico
Hi nona, this broke the mac shared build: http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Mac%2010.6%20Shared/builds/13768 Can you take a look?
8 years, 5 months ago (2012-07-23 13:36:04 UTC) #26
Nico
8 years, 5 months ago (2012-07-23 13:36:29 UTC) #27
…actually, I'll just send you a fix.

Powered by Google App Engine
This is Rietveld 408576698