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

Side by Side Diff: components/autofill/content/renderer/form_autofill_util.cc

Issue 151503006: Re-land r248110 with ASAN error fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Punctuation Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/content/renderer/form_autofill_util.h" 5 #include "components/autofill/content/renderer/form_autofill_util.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 tag_is_allowed = true; 1168 tag_is_allowed = true;
1169 break; 1169 break;
1170 } 1170 }
1171 } 1171 }
1172 if (!tag_is_allowed) 1172 if (!tag_is_allowed)
1173 return false; 1173 return false;
1174 } 1174 }
1175 return true; 1175 return true;
1176 } 1176 }
1177 1177
1178 gfx::RectF GetScaledBoundingBox(float scale, WebInputElement* element) {
1179 gfx::Rect bounding_box(element->boundsInViewportSpace());
1180 return gfx::RectF(bounding_box.x() * scale,
1181 bounding_box.y() * scale,
1182 bounding_box.width() * scale,
1183 bounding_box.height() * scale);
1184 }
1185
1178 } // namespace autofill 1186 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698