Chromium Code Reviews| Index: components/autofill/content/renderer/form_autofill_util.cc |
| diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc |
| index 71d53fc1416edf6440c4a9269d31446715384d09..2a32103546cebcf6521b342132ebac8cb76f4a70 100644 |
| --- a/components/autofill/content/renderer/form_autofill_util.cc |
| +++ b/components/autofill/content/renderer/form_autofill_util.cc |
| @@ -4,6 +4,8 @@ |
| #include "components/autofill/content/renderer/form_autofill_util.h" |
| +#include <algorithm> |
| +#include <limits> |
|
Łukasz Anforowicz
2017/06/15 20:15:59
This CL contains some opportunistic fixes for issu
|
| #include <map> |
| #include <memory> |
| #include <set> |
| @@ -43,9 +45,9 @@ using blink::WebElement; |
| using blink::WebElementCollection; |
| using blink::WebFormControlElement; |
| using blink::WebFormElement; |
| -using blink::WebFrame; |
| using blink::WebInputElement; |
| using blink::WebLabelElement; |
| +using blink::WebLocalFrame; |
| using blink::WebNode; |
| using blink::WebOptionElement; |
| using blink::WebSelectElement; |
| @@ -1194,7 +1196,7 @@ bool ExtractFormData(const WebFormElement& form_element, FormData* data) { |
| data, NULL); |
| } |
| -bool IsFormVisible(blink::WebFrame* frame, |
| +bool IsFormVisible(blink::WebLocalFrame* frame, |
| const blink::WebFormElement& form_element, |
| const GURL& canonical_action, |
| const GURL& canonical_origin, |
| @@ -1473,7 +1475,7 @@ bool WebFormElementToFormData( |
| ExtractMask extract_mask, |
| FormData* form, |
| FormFieldData* field) { |
| - const WebFrame* frame = form_element.GetDocument().GetFrame(); |
| + const WebLocalFrame* frame = form_element.GetDocument().GetFrame(); |
| if (!frame) |
| return false; |
| @@ -1762,7 +1764,7 @@ bool ClearPreviewedFormWithElement(const WebFormControlElement& element, |
| return true; |
| } |
| -bool IsWebpageEmpty(const blink::WebFrame* frame) { |
| +bool IsWebpageEmpty(const blink::WebLocalFrame* frame) { |
| blink::WebDocument document = frame->GetDocument(); |
| return IsWebElementEmpty(document.Head()) && |