OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 #else | 91 #else |
92 result.assign(tempVector); | 92 result.assign(tempVector); |
93 #endif | 93 #endif |
94 } | 94 } |
95 | 95 |
96 void WebFormElement::getFormControlElements(WebVector<WebFormControlElement>& re
sult) const | 96 void WebFormElement::getFormControlElements(WebVector<WebFormControlElement>& re
sult) const |
97 { | 97 { |
98 const HTMLFormElement* form = constUnwrap<HTMLFormElement>(); | 98 const HTMLFormElement* form = constUnwrap<HTMLFormElement>(); |
99 Vector<WebFormControlElement> formControlElements; | 99 Vector<WebFormControlElement> formControlElements; |
100 | 100 |
101 const Vector<FormAssociatedElement*>& associatedElements = form->associatedE
lements(); | 101 const FormAssociatedElement::List& associatedElements = form->associatedElem
ents(); |
102 for (Vector<FormAssociatedElement*>::const_iterator it = associatedElements.
begin(); it != associatedElements.end(); ++it) { | 102 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg
in(); it != associatedElements.end(); ++it) { |
103 if ((*it)->isFormControlElement()) | 103 if ((*it)->isFormControlElement()) |
104 formControlElements.append(toHTMLFormControlElement(*it)); | 104 formControlElements.append(toHTMLFormControlElement(*it)); |
105 } | 105 } |
106 result.assign(formControlElements); | 106 result.assign(formControlElements); |
107 } | 107 } |
108 | 108 |
109 bool WebFormElement::checkValidity() | 109 bool WebFormElement::checkValidity() |
110 { | 110 { |
111 return unwrap<HTMLFormElement>()->checkValidity(); | 111 return unwrap<HTMLFormElement>()->checkValidity(); |
112 } | 112 } |
(...skipping 13 matching lines...) Expand all Loading... |
126 m_private = e; | 126 m_private = e; |
127 return *this; | 127 return *this; |
128 } | 128 } |
129 | 129 |
130 WebFormElement::operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const | 130 WebFormElement::operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const |
131 { | 131 { |
132 return toHTMLFormElement(m_private.get()); | 132 return toHTMLFormElement(m_private.get()); |
133 } | 133 } |
134 | 134 |
135 } // namespace blink | 135 } // namespace blink |
OLD | NEW |