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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 Vector<WebFormControlElement> formControlElements; | 68 Vector<WebFormControlElement> formControlElements; |
69 | 69 |
70 const FormAssociatedElement::List& associatedElements = form->associatedElem
ents(); | 70 const FormAssociatedElement::List& associatedElements = form->associatedElem
ents(); |
71 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg
in(); it != associatedElements.end(); ++it) { | 71 for (FormAssociatedElement::List::const_iterator it = associatedElements.beg
in(); it != associatedElements.end(); ++it) { |
72 if ((*it)->isFormControlElement()) | 72 if ((*it)->isFormControlElement()) |
73 formControlElements.append(toHTMLFormControlElement(*it)); | 73 formControlElements.append(toHTMLFormControlElement(*it)); |
74 } | 74 } |
75 result.assign(formControlElements); | 75 result.assign(formControlElements); |
76 } | 76 } |
77 | 77 |
78 bool WebFormElement::checkValidity() | |
79 { | |
80 return unwrap<HTMLFormElement>()->checkValidity(); | |
81 } | |
82 | |
83 void WebFormElement::finishRequestAutocomplete(WebFormElement::AutocompleteResul
t result) | |
84 { | |
85 unwrap<HTMLFormElement>()->finishRequestAutocomplete(static_cast<HTMLFormEle
ment::AutocompleteResult>(result)); | |
86 } | |
87 | |
88 WebFormElement::WebFormElement(HTMLFormElement* e) | 78 WebFormElement::WebFormElement(HTMLFormElement* e) |
89 : WebElement(e) | 79 : WebElement(e) |
90 { | 80 { |
91 } | 81 } |
92 | 82 |
93 DEFINE_WEB_NODE_TYPE_CASTS(WebFormElement, isHTMLFormElement(constUnwrap<Node>()
)); | 83 DEFINE_WEB_NODE_TYPE_CASTS(WebFormElement, isHTMLFormElement(constUnwrap<Node>()
)); |
94 | 84 |
95 WebFormElement& WebFormElement::operator=(HTMLFormElement* e) | 85 WebFormElement& WebFormElement::operator=(HTMLFormElement* e) |
96 { | 86 { |
97 m_private = e; | 87 m_private = e; |
98 return *this; | 88 return *this; |
99 } | 89 } |
100 | 90 |
101 WebFormElement::operator HTMLFormElement*() const | 91 WebFormElement::operator HTMLFormElement*() const |
102 { | 92 { |
103 return toHTMLFormElement(m_private.get()); | 93 return toHTMLFormElement(m_private.get()); |
104 } | 94 } |
105 | 95 |
106 } // namespace blink | 96 } // namespace blink |
OLD | NEW |