OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 */ | 30 */ |
31 | 31 |
32 #include "config.h" | 32 #include "config.h" |
33 #include "core/html/HTMLDataListElement.h" | 33 #include "core/html/HTMLDataListElement.h" |
34 | 34 |
35 #include "core/dom/IdTargetObserverRegistry.h" | 35 #include "core/dom/IdTargetObserverRegistry.h" |
36 #include "core/page/UseCounter.h" | 36 #include "core/page/UseCounter.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 inline HTMLDataListElement::HTMLDataListElement(const QualifiedName& tagName, Do
cument* document) | 40 inline HTMLDataListElement::HTMLDataListElement(const QualifiedName& tagName, Do
cument& document) |
41 : HTMLElement(tagName, document) | 41 : HTMLElement(tagName, document) |
42 { | 42 { |
43 ScriptWrappable::init(this); | 43 ScriptWrappable::init(this); |
44 } | 44 } |
45 | 45 |
46 PassRefPtr<HTMLDataListElement> HTMLDataListElement::create(const QualifiedName&
tagName, Document* document) | 46 PassRefPtr<HTMLDataListElement> HTMLDataListElement::create(const QualifiedName&
tagName, Document& document) |
47 { | 47 { |
48 UseCounter::count(document, UseCounter::DataListElement); | 48 UseCounter::count(&document, UseCounter::DataListElement); |
49 return adoptRef(new HTMLDataListElement(tagName, document)); | 49 return adoptRef(new HTMLDataListElement(tagName, document)); |
50 } | 50 } |
51 | 51 |
52 PassRefPtr<HTMLCollection> HTMLDataListElement::options() | 52 PassRefPtr<HTMLCollection> HTMLDataListElement::options() |
53 { | 53 { |
54 return ensureCachedHTMLCollection(DataListOptions); | 54 return ensureCachedHTMLCollection(DataListOptions); |
55 } | 55 } |
56 | 56 |
57 void HTMLDataListElement::optionElementChildrenChanged() | 57 void HTMLDataListElement::optionElementChildrenChanged() |
58 { | 58 { |
59 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()); | 59 treeScope().idTargetObserverRegistry().notifyObservers(getIdAttribute()); |
60 } | 60 } |
61 | 61 |
62 } // namespace WebCore | 62 } // namespace WebCore |
OLD | NEW |