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

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLElement.cpp ('k') | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index e46083cf3581106d8485f6c205f7fac1fb368437..585ad3cf8afa24655b1b668a5147776924e8b7b1 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -279,7 +279,7 @@ bool HTMLFormElement::prepareForSubmission(Event* event)
StringPairVector controlNamesAndValues;
getTextFieldValues(controlNamesAndValues);
RefPtr<FormState> formState = FormState::create(this, controlNamesAndValues, &document(), NotSubmittedByJavaScript);
- frame->loader()->client()->dispatchWillSendSubmitEvent(formState.release());
+ frame->loader().client()->dispatchWillSendSubmitEvent(formState.release());
if (dispatchEvent(Event::createCancelableBubble(EventTypeNames::submit)))
m_shouldSubmit = true;
@@ -398,8 +398,8 @@ void HTMLFormElement::scheduleFormSubmission(PassRefPtr<FormSubmission> submissi
document().frame()->script().executeScriptIfJavaScriptURL(submission->action());
return;
}
- submission->setReferrer(document().frame()->loader()->outgoingReferrer());
- submission->setOrigin(document().frame()->loader()->outgoingOrigin());
+ submission->setReferrer(document().frame()->loader().outgoingReferrer());
+ submission->setOrigin(document().frame()->loader().outgoingOrigin());
document().frame()->navigationScheduler().scheduleFormSubmission(submission);
}
@@ -439,7 +439,7 @@ void HTMLFormElement::requestAutocomplete()
StringPairVector controlNamesAndValues;
getTextFieldValues(controlNamesAndValues);
RefPtr<FormState> formState = FormState::create(this, controlNamesAndValues, &document(), SubmittedByJavaScript);
- frame->loader()->client()->didRequestAutocomplete(formState.release());
+ frame->loader().client()->didRequestAutocomplete(formState.release());
}
void HTMLFormElement::finishRequestAutocomplete(AutocompleteResult result)
« no previous file with comments | « Source/core/html/HTMLElement.cpp ('k') | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698