OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 if (const ComputedStyle* style = constUnwrap<HTMLFormControlElement>()->comp
utedStyle()) | 169 if (const ComputedStyle* style = constUnwrap<HTMLFormControlElement>()->comp
utedStyle()) |
170 return style->isLeftToRightDirection() ? WebString::fromUTF8("ltr") : We
bString::fromUTF8("rtl"); | 170 return style->isLeftToRightDirection() ? WebString::fromUTF8("ltr") : We
bString::fromUTF8("rtl"); |
171 return WebString::fromUTF8("ltr"); | 171 return WebString::fromUTF8("ltr"); |
172 } | 172 } |
173 | 173 |
174 WebFormElement WebFormControlElement::form() const | 174 WebFormElement WebFormControlElement::form() const |
175 { | 175 { |
176 return WebFormElement(constUnwrap<HTMLFormControlElement>()->form()); | 176 return WebFormElement(constUnwrap<HTMLFormControlElement>()->form()); |
177 } | 177 } |
178 | 178 |
179 WebFormControlElement::WebFormControlElement(const RawPtr<HTMLFormControlElement
>& elem) | 179 WebFormControlElement::WebFormControlElement(HTMLFormControlElement*elem) |
180 : WebElement(elem) | 180 : WebElement(elem) |
181 { | 181 { |
182 } | 182 } |
183 | 183 |
184 DEFINE_WEB_NODE_TYPE_CASTS(WebFormControlElement, isElementNode() && constUnwrap
<Element>()->isFormControlElement()); | 184 DEFINE_WEB_NODE_TYPE_CASTS(WebFormControlElement, isElementNode() && constUnwrap
<Element>()->isFormControlElement()); |
185 | 185 |
186 WebFormControlElement& WebFormControlElement::operator=(const RawPtr<HTMLFormCon
trolElement>& elem) | 186 WebFormControlElement& WebFormControlElement::operator=(HTMLFormControlElement*e
lem) |
187 { | 187 { |
188 m_private = elem; | 188 m_private = elem; |
189 return *this; | 189 return *this; |
190 } | 190 } |
191 | 191 |
192 WebFormControlElement::operator RawPtr<HTMLFormControlElement>() const | 192 WebFormControlElement::operator HTMLFormControlElement*() const |
193 { | 193 { |
194 return toHTMLFormControlElement(m_private.get()); | 194 return toHTMLFormControlElement(m_private.get()); |
195 } | 195 } |
196 | 196 |
197 } // namespace blink | 197 } // namespace blink |
OLD | NEW |