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, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2010 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 HTMLFormControlElement::parseAttribute(name, oldValue, value); | 99 HTMLFormControlElement::parseAttribute(name, oldValue, value); |
100 } | 100 } |
101 | 101 |
102 void HTMLKeygenElement::appendToFormData(FormData& formData) | 102 void HTMLKeygenElement::appendToFormData(FormData& formData) |
103 { | 103 { |
104 // Only RSA is supported at this time. | 104 // Only RSA is supported at this time. |
105 const AtomicString& keyType = fastGetAttribute(keytypeAttr); | 105 const AtomicString& keyType = fastGetAttribute(keytypeAttr); |
106 if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa")) | 106 if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa")) |
107 return; | 107 return; |
108 SecurityOrigin* topOrigin = document().frame()->tree().top()->securityContex
t()->securityOrigin(); | 108 SecurityOrigin* topOrigin = document().frame()->tree().top()->securityContex
t()->getSecurityOrigin(); |
109 String value = Platform::current()->signedPublicKeyAndChallengeString( | 109 String value = Platform::current()->signedPublicKeyAndChallengeString( |
110 shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), docume
nt().baseURL(), | 110 shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), docume
nt().baseURL(), |
111 KURL(KURL(), topOrigin->toString())); | 111 KURL(KURL(), topOrigin->toString())); |
112 if (!value.isNull()) | 112 if (!value.isNull()) |
113 formData.append(name(), value); | 113 formData.append(name(), value); |
114 } | 114 } |
115 | 115 |
116 const AtomicString& HTMLKeygenElement::formControlType() const | 116 const AtomicString& HTMLKeygenElement::formControlType() const |
117 { | 117 { |
118 DEFINE_STATIC_LOCAL(const AtomicString, keygen, ("keygen", AtomicString::Con
structFromLiteral)); | 118 DEFINE_STATIC_LOCAL(const AtomicString, keygen, ("keygen", AtomicString::Con
structFromLiteral)); |
(...skipping 15 matching lines...) Expand all Loading... |
134 { | 134 { |
135 return true; | 135 return true; |
136 } | 136 } |
137 | 137 |
138 bool HTMLKeygenElement::supportsAutofocus() const | 138 bool HTMLKeygenElement::supportsAutofocus() const |
139 { | 139 { |
140 return true; | 140 return true; |
141 } | 141 } |
142 | 142 |
143 } // namespace blink | 143 } // namespace blink |
OLD | NEW |