| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 HTMLKeygenElement* HTMLKeygenElement::create(Document& document, | 56 HTMLKeygenElement* HTMLKeygenElement::create(Document& document, |
| 57 HTMLFormElement* form) { | 57 HTMLFormElement* form) { |
| 58 HTMLKeygenElement* keygen = new HTMLKeygenElement(document, form); | 58 HTMLKeygenElement* keygen = new HTMLKeygenElement(document, form); |
| 59 keygen->ensureUserAgentShadowRoot(); | 59 keygen->ensureUserAgentShadowRoot(); |
| 60 return keygen; | 60 return keygen; |
| 61 } | 61 } |
| 62 | 62 |
| 63 LayoutObject* HTMLKeygenElement::createLayoutObject( | 63 LayoutObject* HTMLKeygenElement::createLayoutObject( |
| 64 const ComputedStyle& style) { | 64 const ComputedStyle& style) { |
| 65 // TODO(mstensho): While it's harmful and meaningless to allow most display ty
pes on replaced | 65 // TODO(mstensho): While it's harmful and meaningless to allow most display |
| 66 // content (e.g. table, table-row or flex), it would be useful to honor at lea
st some of | 66 // types on replaced content (e.g. table, table-row or flex), it would be |
| 67 // them. Table-cell (and maybe table-caption too), for instance. See crbug.com
/335040 | 67 // useful to honor at least some of them. Table-cell (and maybe table-caption |
| 68 // too), for instance. See crbug.com/335040 |
| 68 return new LayoutBlockFlow(this); | 69 return new LayoutBlockFlow(this); |
| 69 } | 70 } |
| 70 | 71 |
| 71 void HTMLKeygenElement::didAddUserAgentShadowRoot(ShadowRoot& root) { | 72 void HTMLKeygenElement::didAddUserAgentShadowRoot(ShadowRoot& root) { |
| 72 DEFINE_STATIC_LOCAL(AtomicString, keygenSelectPseudoId, | 73 DEFINE_STATIC_LOCAL(AtomicString, keygenSelectPseudoId, |
| 73 ("-webkit-keygen-select")); | 74 ("-webkit-keygen-select")); |
| 74 | 75 |
| 75 Vector<String> keys; | 76 Vector<String> keys; |
| 76 keys.reserveCapacity(2); | 77 keys.reserveCapacity(2); |
| 77 keys.append( | 78 keys.append( |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 bool HTMLKeygenElement::isInteractiveContent() const { | 133 bool HTMLKeygenElement::isInteractiveContent() const { |
| 133 return true; | 134 return true; |
| 134 } | 135 } |
| 135 | 136 |
| 136 bool HTMLKeygenElement::supportsAutofocus() const { | 137 bool HTMLKeygenElement::supportsAutofocus() const { |
| 137 return true; | 138 return true; |
| 138 } | 139 } |
| 139 | 140 |
| 140 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |