| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(action)); | 77 return document().completeURL(stripLeadingAndTrailingHTMLSpaces(action)); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void HTMLFormControlElement::setFormAction(const AtomicString& value) { | 80 void HTMLFormControlElement::setFormAction(const AtomicString& value) { |
| 81 setAttribute(formactionAttr, value); | 81 setAttribute(formactionAttr, value); |
| 82 } | 82 } |
| 83 | 83 |
| 84 String HTMLFormControlElement::formEnctype() const { | 84 String HTMLFormControlElement::formEnctype() const { |
| 85 const AtomicString& formEnctypeAttr = fastGetAttribute(formenctypeAttr); | 85 const AtomicString& formEnctypeAttr = fastGetAttribute(formenctypeAttr); |
| 86 if (formEnctypeAttr.isNull()) | 86 if (formEnctypeAttr.isNull()) |
| 87 return emptyString(); | 87 return emptyString; |
| 88 return FormSubmission::Attributes::parseEncodingType(formEnctypeAttr); | 88 return FormSubmission::Attributes::parseEncodingType(formEnctypeAttr); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void HTMLFormControlElement::setFormEnctype(const AtomicString& value) { | 91 void HTMLFormControlElement::setFormEnctype(const AtomicString& value) { |
| 92 setAttribute(formenctypeAttr, value); | 92 setAttribute(formenctypeAttr, value); |
| 93 } | 93 } |
| 94 | 94 |
| 95 String HTMLFormControlElement::formMethod() const { | 95 String HTMLFormControlElement::formMethod() const { |
| 96 const AtomicString& formMethodAttr = fastGetAttribute(formmethodAttr); | 96 const AtomicString& formMethodAttr = fastGetAttribute(formmethodAttr); |
| 97 if (formMethodAttr.isNull()) | 97 if (formMethodAttr.isNull()) |
| 98 return emptyString(); | 98 return emptyString; |
| 99 return FormSubmission::Attributes::methodString( | 99 return FormSubmission::Attributes::methodString( |
| 100 FormSubmission::Attributes::parseMethodType(formMethodAttr)); | 100 FormSubmission::Attributes::parseMethodType(formMethodAttr)); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void HTMLFormControlElement::setFormMethod(const AtomicString& value) { | 103 void HTMLFormControlElement::setFormMethod(const AtomicString& value) { |
| 104 setAttribute(formmethodAttr, value); | 104 setAttribute(formmethodAttr, value); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool HTMLFormControlElement::formNoValidate() const { | 107 bool HTMLFormControlElement::formNoValidate() const { |
| 108 return fastHasAttribute(formnovalidateAttr); | 108 return fastHasAttribute(formnovalidateAttr); |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 const Element& source) { | 634 const Element& source) { |
| 635 HTMLElement::copyNonAttributePropertiesFromElement(source); | 635 HTMLElement::copyNonAttributePropertiesFromElement(source); |
| 636 setNeedsValidityCheck(); | 636 setNeedsValidityCheck(); |
| 637 } | 637 } |
| 638 | 638 |
| 639 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { | 639 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { |
| 640 associateByParser(form); | 640 associateByParser(form); |
| 641 }; | 641 }; |
| 642 | 642 |
| 643 } // namespace blink | 643 } // namespace blink |
| OLD | NEW |