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

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

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. Created 6 years, 7 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
« no previous file with comments | « Source/core/html/HTMLDataListElement.h ('k') | Source/core/html/HTMLFieldSetElement.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 { 43 {
44 ScriptWrappable::init(this); 44 ScriptWrappable::init(this);
45 } 45 }
46 46
47 PassRefPtrWillBeRawPtr<HTMLDataListElement> HTMLDataListElement::create(Document & document) 47 PassRefPtrWillBeRawPtr<HTMLDataListElement> HTMLDataListElement::create(Document & document)
48 { 48 {
49 UseCounter::count(document, UseCounter::DataListElement); 49 UseCounter::count(document, UseCounter::DataListElement);
50 return adoptRefWillBeRefCountedGarbageCollected(new HTMLDataListElement(docu ment)); 50 return adoptRefWillBeRefCountedGarbageCollected(new HTMLDataListElement(docu ment));
51 } 51 }
52 52
53 PassRefPtr<HTMLCollection> HTMLDataListElement::options() 53 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLDataListElement::options()
54 { 54 {
55 return ensureCachedHTMLCollection(DataListOptions); 55 return ensureCachedHTMLCollection(DataListOptions);
56 } 56 }
57 57
58 void HTMLDataListElement::childrenChanged(bool changedByParser, Node* beforeChan ge, Node* afterChange, int childCountDelta) 58 void HTMLDataListElement::childrenChanged(bool changedByParser, Node* beforeChan ge, Node* afterChange, int childCountDelta)
59 { 59 {
60 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi ldCountDelta); 60 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi ldCountDelta);
61 if (!changedByParser) 61 if (!changedByParser)
62 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()) ; 62 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()) ;
63 } 63 }
64 64
65 void HTMLDataListElement::finishParsingChildren() 65 void HTMLDataListElement::finishParsingChildren()
66 { 66 {
67 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()); 67 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute());
68 } 68 }
69 69
70 void HTMLDataListElement::optionElementChildrenChanged() 70 void HTMLDataListElement::optionElementChildrenChanged()
71 { 71 {
72 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()); 72 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute());
73 } 73 }
74 74
75 } // namespace WebCore 75 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDataListElement.h ('k') | Source/core/html/HTMLFieldSetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698