Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFormElement.cpp

Issue 2769263004: Remove Frame::host() method (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 Frame* targetFrame = document().frame()->findFrameForNavigation( 443 Frame* targetFrame = document().frame()->findFrameForNavigation(
444 submission->target(), *document().frame()); 444 submission->target(), *document().frame());
445 if (!targetFrame) { 445 if (!targetFrame) {
446 if (!LocalDOMWindow::allowPopUp(*document().frame()) && 446 if (!LocalDOMWindow::allowPopUp(*document().frame()) &&
447 !UserGestureIndicator::utilizeUserGesture()) 447 !UserGestureIndicator::utilizeUserGesture())
448 return; 448 return;
449 targetFrame = document().frame(); 449 targetFrame = document().frame();
450 } else { 450 } else {
451 submission->clearTarget(); 451 submission->clearTarget();
452 } 452 }
453 if (!targetFrame->host()) 453 if (!targetFrame->page())
454 return; 454 return;
455 455
456 UseCounter::count(document(), UseCounter::FormsSubmitted); 456 UseCounter::count(document(), UseCounter::FormsSubmitted);
457 if (MixedContentChecker::isMixedFormAction(document().frame(), 457 if (MixedContentChecker::isMixedFormAction(document().frame(),
458 submission->action())) 458 submission->action()))
459 UseCounter::count(document().frame(), 459 UseCounter::count(document().frame(),
460 UseCounter::MixedContentFormsSubmitted); 460 UseCounter::MixedContentFormsSubmitted);
461 461
462 // TODO(lukasza): Investigate if the code below can uniformly handle remote 462 // TODO(lukasza): Investigate if the code below can uniformly handle remote
463 // and local frames (i.e. by calling virtual Frame::navigate from a timer). 463 // and local frames (i.e. by calling virtual Frame::navigate from a timer).
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 for (const auto& control : listedElements()) { 827 for (const auto& control : listedElements()) {
828 if (!control->isFormControlElement()) 828 if (!control->isFormControlElement())
829 continue; 829 continue;
830 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) 830 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton())
831 toHTMLFormControlElement(control)->pseudoStateChanged( 831 toHTMLFormControlElement(control)->pseudoStateChanged(
832 CSSSelector::PseudoDefault); 832 CSSSelector::PseudoDefault);
833 } 833 }
834 } 834 }
835 835
836 } // namespace blink 836 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698