OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies) |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 29 matching lines...) Expand all Loading... |
40 using namespace HTMLNames; | 40 using namespace HTMLNames; |
41 | 41 |
42 static DetailsEventSender& detailsToggleEventSender() | 42 static DetailsEventSender& detailsToggleEventSender() |
43 { | 43 { |
44 DEFINE_STATIC_LOCAL(DetailsEventSender, sharedToggleEventSender, (EventTypeN
ames::toggle)); | 44 DEFINE_STATIC_LOCAL(DetailsEventSender, sharedToggleEventSender, (EventTypeN
ames::toggle)); |
45 return sharedToggleEventSender; | 45 return sharedToggleEventSender; |
46 } | 46 } |
47 | 47 |
48 PassRefPtrWillBeRawPtr<HTMLDetailsElement> HTMLDetailsElement::create(Document&
document) | 48 PassRefPtrWillBeRawPtr<HTMLDetailsElement> HTMLDetailsElement::create(Document&
document) |
49 { | 49 { |
50 RefPtrWillBeRawPtr<HTMLDetailsElement> details = adoptRefWillBeRefCountedGar
bageCollected(new HTMLDetailsElement(document)); | 50 RefPtrWillBeRawPtr<HTMLDetailsElement> details = adoptRefWillBeNoop(new HTML
DetailsElement(document)); |
51 details->ensureUserAgentShadowRoot(); | 51 details->ensureUserAgentShadowRoot(); |
52 return details.release(); | 52 return details.release(); |
53 } | 53 } |
54 | 54 |
55 HTMLDetailsElement::HTMLDetailsElement(Document& document) | 55 HTMLDetailsElement::HTMLDetailsElement(Document& document) |
56 : HTMLElement(detailsTag, document) | 56 : HTMLElement(detailsTag, document) |
57 , m_isOpen(false) | 57 , m_isOpen(false) |
58 { | 58 { |
59 ScriptWrappable::init(this); | 59 ScriptWrappable::init(this); |
60 } | 60 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 { | 139 { |
140 setAttribute(openAttr, m_isOpen ? nullAtom : emptyAtom); | 140 setAttribute(openAttr, m_isOpen ? nullAtom : emptyAtom); |
141 } | 141 } |
142 | 142 |
143 bool HTMLDetailsElement::isInteractiveContent() const | 143 bool HTMLDetailsElement::isInteractiveContent() const |
144 { | 144 { |
145 return true; | 145 return true; |
146 } | 146 } |
147 | 147 |
148 } | 148 } |
OLD | NEW |