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