Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: Source/core/html/HTMLDetailsElement.cpp

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLDataListElement.cpp ('k') | Source/core/html/HTMLDocument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDataListElement.cpp ('k') | Source/core/html/HTMLDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698