Prepare submitForm for seamless navigation
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 07:53:46 +0000 (07:53 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 07:53:46 +0000 (07:53 +0000)
commit5d82cdb72907c18352dc0de170565ee6dc38db15
tree1add0a58e24de56e126bec51681b49f9ac70a732
parentae8dbf702f59cfd2c7fa23280bb08b606d7fecd3
Prepare submitForm for seamless navigation
https://bugs.webkit.org/show_bug.cgi?id=83838

Reviewed by Ryosuke Niwa.

Previously, FrameLoader::submitForm called FrameTree::find and
Document::canNavigate separately.  This patch refactors this function
to call findFrameForNavigation, which does both checks.

This doesn't change any behavior today, but it prepares us to implement
seamless navigation.  Once the seamless branch lands, this change will
be tested by seamless-form-* in https://github.com/eseidel/webkit/tree/seamless/LayoutTests/fast/frames/seamless

For context, see:
https://github.com/eseidel/webkit/commit/3f27340577ac91b2cc0a834dd2c6fdfcac296c32

* loader/FrameLoader.cpp:
(WebCore::FrameLoader::submitForm):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/FrameLoader.cpp