| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 .GetFrame() | 447 .GetFrame() |
| 448 ->GetScriptController() | 448 ->GetScriptController() |
| 449 .ExecuteScriptIfJavaScriptURL(submission->Action(), this); | 449 .ExecuteScriptIfJavaScriptURL(submission->Action(), this); |
| 450 return; | 450 return; |
| 451 } | 451 } |
| 452 | 452 |
| 453 Frame* target_frame = GetDocument().GetFrame()->FindFrameForNavigation( | 453 Frame* target_frame = GetDocument().GetFrame()->FindFrameForNavigation( |
| 454 submission->Target(), *GetDocument().GetFrame()); | 454 submission->Target(), *GetDocument().GetFrame()); |
| 455 if (!target_frame) { | 455 if (!target_frame) { |
| 456 if (!LocalDOMWindow::AllowPopUp(*GetDocument().GetFrame()) && | 456 if (!LocalDOMWindow::AllowPopUp(*GetDocument().GetFrame()) && |
| 457 !UserGestureIndicator::UtilizeUserGesture()) | 457 !UserGestureIndicator::ProcessingUserGesture()) |
| 458 return; | 458 return; |
| 459 target_frame = GetDocument().GetFrame(); | 459 target_frame = GetDocument().GetFrame(); |
| 460 } else { | 460 } else { |
| 461 submission->ClearTarget(); | 461 submission->ClearTarget(); |
| 462 } | 462 } |
| 463 if (!target_frame->GetPage()) | 463 if (!target_frame->GetPage()) |
| 464 return; | 464 return; |
| 465 | 465 |
| 466 UseCounter::Count(GetDocument(), UseCounter::kFormsSubmitted); | 466 UseCounter::Count(GetDocument(), UseCounter::kFormsSubmitted); |
| 467 if (MixedContentChecker::IsMixedFormAction(GetDocument().GetFrame(), | 467 if (MixedContentChecker::IsMixedFormAction(GetDocument().GetFrame(), |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 for (const auto& control : ListedElements()) { | 842 for (const auto& control : ListedElements()) { |
| 843 if (!control->IsFormControlElement()) | 843 if (!control->IsFormControlElement()) |
| 844 continue; | 844 continue; |
| 845 if (ToHTMLFormControlElement(control)->CanBeSuccessfulSubmitButton()) | 845 if (ToHTMLFormControlElement(control)->CanBeSuccessfulSubmitButton()) |
| 846 ToHTMLFormControlElement(control)->PseudoStateChanged( | 846 ToHTMLFormControlElement(control)->PseudoStateChanged( |
| 847 CSSSelector::kPseudoDefault); | 847 CSSSelector::kPseudoDefault); |
| 848 } | 848 } |
| 849 } | 849 } |
| 850 | 850 |
| 851 } // namespace blink | 851 } // namespace blink |
| OLD | NEW |