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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 { | 50 { |
51 } | 51 } |
52 | 52 |
53 PassRefPtrWillBeRawPtr<HTMLKeygenElement> HTMLKeygenElement::create(Document& do
cument, HTMLFormElement* form) | 53 PassRefPtrWillBeRawPtr<HTMLKeygenElement> HTMLKeygenElement::create(Document& do
cument, HTMLFormElement* form) |
54 { | 54 { |
55 RefPtrWillBeRawPtr<HTMLKeygenElement> keygen = adoptRefWillBeNoop(new HTMLKe
ygenElement(document, form)); | 55 RefPtrWillBeRawPtr<HTMLKeygenElement> keygen = adoptRefWillBeNoop(new HTMLKe
ygenElement(document, form)); |
56 keygen->ensureClosedShadowRoot(); | 56 keygen->ensureClosedShadowRoot(); |
57 return keygen.release(); | 57 return keygen.release(); |
58 } | 58 } |
59 | 59 |
60 LayoutObject* HTMLKeygenElement::createLayoutObject(const LayoutStyle& style) | 60 LayoutObject* HTMLKeygenElement::createLayoutObject(const ComputedStyle& style) |
61 { | 61 { |
62 // TODO(mstensho): While it's harmful and meaningless to allow most display
types on replaced | 62 // TODO(mstensho): While it's harmful and meaningless to allow most display
types on replaced |
63 // content (e.g. table, table-row or flex), it would be useful to honor at l
east some of | 63 // content (e.g. table, table-row or flex), it would be useful to honor at l
east some of |
64 // them. Table-cell (and maybe table-caption too), for instance. See crbug.c
om/335040 | 64 // them. Table-cell (and maybe table-caption too), for instance. See crbug.c
om/335040 |
65 return new LayoutBlockFlow(this); | 65 return new LayoutBlockFlow(this); |
66 } | 66 } |
67 | 67 |
68 void HTMLKeygenElement::didAddClosedShadowRoot(ShadowRoot& root) | 68 void HTMLKeygenElement::didAddClosedShadowRoot(ShadowRoot& root) |
69 { | 69 { |
70 DEFINE_STATIC_LOCAL(AtomicString, keygenSelectPseudoId, ("-webkit-keygen-sel
ect", AtomicString::ConstructFromLiteral)); | 70 DEFINE_STATIC_LOCAL(AtomicString, keygenSelectPseudoId, ("-webkit-keygen-sel
ect", AtomicString::ConstructFromLiteral)); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 { | 129 { |
130 return true; | 130 return true; |
131 } | 131 } |
132 | 132 |
133 bool HTMLKeygenElement::supportsAutofocus() const | 133 bool HTMLKeygenElement::supportsAutofocus() const |
134 { | 134 { |
135 return true; | 135 return true; |
136 } | 136 } |
137 | 137 |
138 } // namespace | 138 } // namespace |
OLD | NEW |