summaryrefslogtreecommitdiffstats
path: root/webkit/glue/dom_operations.cc
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 12:46:38 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 12:46:38 +0000
commitf0a51fb571f46531025fa09240bbc3e1af925e84 (patch)
tree558b4f0e737fda4b9ab60f252c9c23b8a4ca523e /webkit/glue/dom_operations.cc
parent6390be368205705f49ead3cec40396519f13b889 (diff)
downloadchromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.zip
chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.gz
chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.bz2
Fixes CRLF and trailing white spaces.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_operations.cc')
-rw-r--r--webkit/glue/dom_operations.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/webkit/glue/dom_operations.cc b/webkit/glue/dom_operations.cc
index e77e375..4773812 100644
--- a/webkit/glue/dom_operations.cc
+++ b/webkit/glue/dom_operations.cc
@@ -283,8 +283,8 @@ bool FillFormToUploadFile(WebView* view, const FileUploadData& data) {
// Internal implementation of FillForm API.
static bool FillFormImpl(FormElements* fe, const FormData& data, bool submit) {
if (!fe->form_element->autoComplete())
- return false;
-
+ return false;
+
FormValueMap data_map;
for (unsigned int i = 0; i < data.elements.size(); i++) {
data_map[data.elements[i]] = data.values[i];
@@ -327,10 +327,10 @@ static bool FindFormInputElements(WebCore::HTMLFormElement* fe,
FormElements* result) {
Vector<RefPtr<WebCore::Node> > temp_elements;
// Loop through the list of elements we need to find on the form in
- // order to autofill it. If we don't find any one of them, abort
+ // order to autofill it. If we don't find any one of them, abort
// processing this form; it can't be the right one.
for (size_t j = 0; j < data.elements.size(); j++, temp_elements.clear()) {
- fe->getNamedElements(StdWStringToString(data.elements[j]),
+ fe->getNamedElements(StdWStringToString(data.elements[j]),
temp_elements);
if (temp_elements.isEmpty()) {
// We didn't find a required element. This is not the right form.
@@ -370,7 +370,7 @@ static void FindFormElements(WebView* view,
// Loop through each frame.
for (WebCore::Frame* f = frame; f; f = f->tree()->traverseNext()) {
WebCore::Document* doc = f->document();
- if (!doc->isHTMLDocument())
+ if (!doc->isHTMLDocument())
continue;
GURL full_origin(StringToStdString(doc->documentURI()));
@@ -380,9 +380,9 @@ static void FindFormElements(WebView* view,
WebCore::FrameLoader* loader = f->loader();
if (loader == NULL)
continue;
-
+
PassRefPtr<WebCore::HTMLCollection> forms = doc->forms();
- for (size_t i = 0; i < forms->length(); ++i) {
+ for (size_t i = 0; i < forms->length(); ++i) {
WebCore::HTMLFormElement* fe =
static_cast<WebCore::HTMLFormElement*>(forms->item(i));
@@ -409,7 +409,7 @@ bool FillForm(WebView* view, const FormData& data) {
bool success = false;
if (!forms.empty())
success = FillFormImpl(forms[0], data, false);
-
+
// TODO(timsteele): Move STLDeleteElements to base/ and have FormElementsList
// use that.
FormElementsList::iterator iter;
@@ -422,7 +422,7 @@ void FillPasswordForm(WebView* view,
const PasswordFormDomManager::FillData& data) {
FormElementsList forms;
// We own the FormElements* in forms.
- FindFormElements(view, data.basic_data, &forms);
+ FindFormElements(view, data.basic_data, &forms);
FormElementsList::iterator iter;
for (iter = forms.begin(); iter != forms.end(); ++iter) {
// TODO(timsteele): Move STLDeleteElements to base/ and have