OLD | NEW |
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 Loading... |
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 |
OLD | NEW |