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

Side by Side Diff: webkit/glue/searchable_form_data.cc

Issue 41017: WebKit merge 41498:41530. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address darin's comments Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "CSSHelper.h"
10 #include "CString.h" 11 #include "CString.h"
11 #include "Document.h" 12 #include "Document.h"
12 #include "DocumentLoader.h" 13 #include "DocumentLoader.h"
13 #include "FormData.h" 14 #include "FormData.h"
14 #include "FormDataList.h" 15 #include "FormDataList.h"
15 #include "FrameLoader.h" 16 #include "FrameLoader.h"
16 #include "HTMLFormControlElement.h" 17 #include "HTMLFormControlElement.h"
17 #include "HTMLFormElement.h" 18 #include "HTMLFormElement.h"
18 #include "HTMLOptionElement.h" 19 #include "HTMLOptionElement.h"
19 #include "HTMLInputElement.h" 20 #include "HTMLInputElement.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 } 290 }
290 } 291 }
291 } 292 }
292 } 293 }
293 return text_element; 294 return text_element;
294 } 295 }
295 296
296 } // namespace 297 } // namespace
297 298
298 SearchableFormData* SearchableFormData::Create(WebCore::Element* element) { 299 SearchableFormData* SearchableFormData::Create(WebCore::Element* element) {
299 » if (!element->isFormControlElement() || !element->isHTMLElement()) { 300 if (!element->isFormControlElement() || !element->isHTMLElement()) {
300 return NULL; 301 return NULL;
301 } 302 }
302 303
303 WebCore::Frame* frame = element->document()->frame(); 304 WebCore::Frame* frame = element->document()->frame();
304 if (frame == NULL) 305 if (frame == NULL)
305 return NULL; 306 return NULL;
306 307
307 WebCore::HTMLFormControlElement* input_element = 308 WebCore::HTMLFormControlElement* input_element =
308 static_cast<WebCore::HTMLFormControlElement*>(element); 309 static_cast<WebCore::HTMLFormControlElement*>(element);
309 310
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 SearchableFormData::SearchableFormData(const GURL& url, 378 SearchableFormData::SearchableFormData(const GURL& url,
378 const std::wstring& element_name, 379 const std::wstring& element_name,
379 const std::wstring& element_value, 380 const std::wstring& element_value,
380 const std::string& encoding) 381 const std::string& encoding)
381 : url_(url), 382 : url_(url),
382 element_name_(element_name), 383 element_name_(element_name),
383 element_value_(element_value), 384 element_value_(element_value),
384 encoding_(encoding) { 385 encoding_(encoding) {
385 } 386 }
386 387
OLDNEW
« no previous file with comments | « webkit/glue/editor_client_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698