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

Side by Side Diff: Source/web/WebFormElement.cpp

Issue 148013008: Use stricter typing for HTMLCollection named getter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/core/html/HTMLOptionsCollection.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 void WebFormElement::submit() 74 void WebFormElement::submit()
75 { 75 {
76 unwrap<HTMLFormElement>()->submit(); 76 unwrap<HTMLFormElement>()->submit();
77 } 77 }
78 78
79 void WebFormElement::getNamedElements(const WebString& name, 79 void WebFormElement::getNamedElements(const WebString& name,
80 WebVector<WebNode>& result) 80 WebVector<WebNode>& result)
81 { 81 {
82 Vector<RefPtr<Node> > tempVector; 82 Vector<RefPtr<Element> > tempVector;
83 unwrap<HTMLFormElement>()->getNamedElements(name, tempVector); 83 unwrap<HTMLFormElement>()->getNamedElements(name, tempVector);
84 result.assign(tempVector); 84 result.assign(tempVector);
85 } 85 }
86 86
87 void WebFormElement::getFormControlElements(WebVector<WebFormControlElement>& re sult) const 87 void WebFormElement::getFormControlElements(WebVector<WebFormControlElement>& re sult) const
88 { 88 {
89 const HTMLFormElement* form = constUnwrap<HTMLFormElement>(); 89 const HTMLFormElement* form = constUnwrap<HTMLFormElement>();
90 Vector<RefPtr<HTMLFormControlElement> > formControlElements; 90 Vector<RefPtr<HTMLFormControlElement> > formControlElements;
91 91
92 const Vector<FormAssociatedElement*>& associatedElements = form->associatedE lements(); 92 const Vector<FormAssociatedElement*>& associatedElements = form->associatedE lements();
(...skipping 24 matching lines...) Expand all
117 m_private = e; 117 m_private = e;
118 return *this; 118 return *this;
119 } 119 }
120 120
121 WebFormElement::operator PassRefPtr<HTMLFormElement>() const 121 WebFormElement::operator PassRefPtr<HTMLFormElement>() const
122 { 122 {
123 return toHTMLFormElement(m_private.get()); 123 return toHTMLFormElement(m_private.get());
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOptionsCollection.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698