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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 tag_is_allowed = true; | 1311 tag_is_allowed = true; |
1312 break; | 1312 break; |
1313 } | 1313 } |
1314 } | 1314 } |
1315 if (!tag_is_allowed) | 1315 if (!tag_is_allowed) |
1316 return false; | 1316 return false; |
1317 } | 1317 } |
1318 return true; | 1318 return true; |
1319 } | 1319 } |
1320 | 1320 |
1321 gfx::RectF GetScaledBoundingBox(float scale, WebFormControlElement* element) { | 1321 gfx::RectF GetScaledBoundingBox(float scale, WebElement* element) { |
1322 gfx::Rect bounding_box(element->boundsInViewportSpace()); | 1322 gfx::Rect bounding_box(element->boundsInViewportSpace()); |
1323 return gfx::RectF(bounding_box.x() * scale, | 1323 return gfx::RectF(bounding_box.x() * scale, |
1324 bounding_box.y() * scale, | 1324 bounding_box.y() * scale, |
1325 bounding_box.width() * scale, | 1325 bounding_box.width() * scale, |
1326 bounding_box.height() * scale); | 1326 bounding_box.height() * scale); |
1327 } | 1327 } |
1328 | 1328 |
1329 } // namespace autofill | 1329 } // namespace autofill |
OLD | NEW |