| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 { | 158 { |
| 159 if (isHTMLInputElement(*m_private)) | 159 if (isHTMLInputElement(*m_private)) |
| 160 return constUnwrap<HTMLInputElement>()->selectionEnd(); | 160 return constUnwrap<HTMLInputElement>()->selectionEnd(); |
| 161 if (isHTMLTextAreaElement(*m_private)) | 161 if (isHTMLTextAreaElement(*m_private)) |
| 162 return constUnwrap<HTMLTextAreaElement>()->selectionEnd(); | 162 return constUnwrap<HTMLTextAreaElement>()->selectionEnd(); |
| 163 return 0; | 163 return 0; |
| 164 } | 164 } |
| 165 | 165 |
| 166 WebString WebFormControlElement::directionForFormData() const | 166 WebString WebFormControlElement::directionForFormData() const |
| 167 { | 167 { |
| 168 if (LayoutStyle* style = constUnwrap<HTMLFormControlElement>()->layoutStyle(
)) | 168 if (const LayoutStyle* style = constUnwrap<HTMLFormControlElement>()->layout
Style()) |
| 169 return style->isLeftToRightDirection() ? WebString::fromUTF8("ltr") : We
bString::fromUTF8("rtl"); | 169 return style->isLeftToRightDirection() ? WebString::fromUTF8("ltr") : We
bString::fromUTF8("rtl"); |
| 170 return WebString::fromUTF8("ltr"); | 170 return WebString::fromUTF8("ltr"); |
| 171 } | 171 } |
| 172 | 172 |
| 173 bool WebFormControlElement::isActivatedSubmit() const | 173 bool WebFormControlElement::isActivatedSubmit() const |
| 174 { | 174 { |
| 175 return constUnwrap<HTMLFormControlElement>()->isActivatedSubmit(); | 175 return constUnwrap<HTMLFormControlElement>()->isActivatedSubmit(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 WebFormElement WebFormControlElement::form() const | 178 WebFormElement WebFormControlElement::form() const |
| (...skipping 11 matching lines...) Expand all Loading... |
| 190 m_private = elem; | 190 m_private = elem; |
| 191 return *this; | 191 return *this; |
| 192 } | 192 } |
| 193 | 193 |
| 194 WebFormControlElement::operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>()
const | 194 WebFormControlElement::operator PassRefPtrWillBeRawPtr<HTMLFormControlElement>()
const |
| 195 { | 195 { |
| 196 return toHTMLFormControlElement(m_private.get()); | 196 return toHTMLFormControlElement(m_private.get()); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |