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

Issue 295036: [Mac] Simplify field editor code which tracks whether editor rect changed. (Closed)

Created:
11 years, 2 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

[Mac] Simplify field editor code which tracks whether editor rect changed. Previous code used an elaborate system of checks, which was gradually becoming unmaintainable. Now that -resetFieldEditorFrameIfNeeded is implemented using dirty tricks, it is pretty easy to just check if it changed rather than trying to predict it. BUGS=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29727

Patch Set 1 #

Total comments: 4

Patch Set 2 : Pinks comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -312 lines) Patch
M chrome/browser/cocoa/autocomplete_text_field.mm View 1 1 chunk +30 lines, -20 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell.h View 3 chunks +0 lines, -18 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell.mm View 8 chunks +9 lines, -46 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_cell_unittest.mm View 1 chunk +19 lines, -205 lines 0 comments Download
M chrome/browser/cocoa/autocomplete_text_field_unittest.mm View 8 chunks +9 lines, -23 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Scott Hess - ex-Googler
Trying to get this in before anyone else has to write code to track dirty.
11 years, 2 months ago (2009-10-20 23:42:47 UTC) #1
rohitrao (ping after 24h)
http://codereview.chromium.org/295036/diff/1/2 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/295036/diff/1/2#newcode56 Line 56: if (!NSEqualRects(frame, [subview frame])) { Why is this ...
11 years, 2 months ago (2009-10-20 23:50:30 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/295036/diff/1/2 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/295036/diff/1/2#newcode56 Line 56: if (!NSEqualRects(frame, [subview frame])) { On 2009/10/20 23:50:30, ...
11 years, 2 months ago (2009-10-21 00:23:17 UTC) #3
pink (ping after 24hrs)
drive-by http://codereview.chromium.org/295036/diff/1/2 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/295036/diff/1/2#newcode43 Line 43: if (editor) { why not return early ...
11 years, 2 months ago (2009-10-21 15:35:59 UTC) #4
Scott Hess - ex-Googler
http://codereview.chromium.org/295036/diff/1/2 File chrome/browser/cocoa/autocomplete_text_field.mm (right): http://codereview.chromium.org/295036/diff/1/2#newcode43 Line 43: if (editor) { On 2009/10/21 15:35:59, pink wrote: ...
11 years, 2 months ago (2009-10-21 16:32:14 UTC) #5
rohitrao (ping after 24h)
The changes themselves LGTM. I'm still not understanding why changing keywordString_ leads to a frame ...
11 years, 2 months ago (2009-10-21 21:43:12 UTC) #6
Scott Hess - ex-Googler
On 2009/10/21 21:43:12, rohitrao wrote: > The changes themselves LGTM. > > I'm still not ...
11 years, 2 months ago (2009-10-21 21:50:08 UTC) #7
rohitrao (ping after 24h)
11 years, 2 months ago (2009-10-21 21:52:40 UTC) #8
Aah, got it.  Thanks for the explanation.  LGTM

Powered by Google App Engine
This is Rietveld 408576698