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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 tag_is_allowed = true; | 1357 tag_is_allowed = true; |
1358 break; | 1358 break; |
1359 } | 1359 } |
1360 } | 1360 } |
1361 if (!tag_is_allowed) | 1361 if (!tag_is_allowed) |
1362 return false; | 1362 return false; |
1363 } | 1363 } |
1364 return true; | 1364 return true; |
1365 } | 1365 } |
1366 | 1366 |
1367 gfx::RectF GetScaledBoundingBox(float scale, WebFormControlElement* element) { | 1367 gfx::RectF GetScaledBoundingBox(float scale, WebElement* element) { |
1368 gfx::Rect bounding_box(element->boundsInViewportSpace()); | 1368 gfx::Rect bounding_box(element->boundsInViewportSpace()); |
1369 return gfx::RectF(bounding_box.x() * scale, | 1369 return gfx::RectF(bounding_box.x() * scale, |
1370 bounding_box.y() * scale, | 1370 bounding_box.y() * scale, |
1371 bounding_box.width() * scale, | 1371 bounding_box.width() * scale, |
1372 bounding_box.height() * scale); | 1372 bounding_box.height() * scale); |
1373 } | 1373 } |
1374 | 1374 |
1375 } // namespace autofill | 1375 } // namespace autofill |
OLD | NEW |