| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return constUnwrap<HTMLFormElement>()->name(); | 61 return constUnwrap<HTMLFormElement>()->name(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 WebString WebFormElement::method() const | 64 WebString WebFormElement::method() const |
| 65 { | 65 { |
| 66 return constUnwrap<HTMLFormElement>()->method(); | 66 return constUnwrap<HTMLFormElement>()->method(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool WebFormElement::wasUserSubmitted() const | 69 bool WebFormElement::wasUserSubmitted() const |
| 70 { | 70 { |
| 71 return constUnwrap<HTMLFormElement>()->submissionTrigger() == NotSubmittedBy
JavaScript; | 71 return constUnwrap<HTMLFormElement>()->wasUserSubmitted(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void WebFormElement::submit() | 74 void WebFormElement::submit() |
| 75 { | 75 { |
| 76 unwrap<HTMLFormElement>()->submit(); | 76 unwrap<HTMLFormElement>()->submit(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void WebFormElement::getNamedElements(const WebString& name, | 79 void WebFormElement::getNamedElements(const WebString& name, |
| 80 WebVector<WebNode>& result) | 80 WebVector<WebNode>& result) |
| 81 { | 81 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 109 m_private = e; | 109 m_private = e; |
| 110 return *this; | 110 return *this; |
| 111 } | 111 } |
| 112 | 112 |
| 113 WebFormElement::operator PassRefPtr<HTMLFormElement>() const | 113 WebFormElement::operator PassRefPtr<HTMLFormElement>() const |
| 114 { | 114 { |
| 115 return static_cast<HTMLFormElement*>(m_private.get()); | 115 return static_cast<HTMLFormElement*>(m_private.get()); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace WebKit | 118 } // namespace WebKit |
| OLD | NEW |