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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 { | 48 { |
49 UseCounter::count(document, UseCounter::DataListElement); | 49 UseCounter::count(document, UseCounter::DataListElement); |
50 return adoptRefWillBeNoop(new HTMLDataListElement(document)); | 50 return adoptRefWillBeNoop(new HTMLDataListElement(document)); |
51 } | 51 } |
52 | 52 |
53 PassRefPtrWillBeRawPtr<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(const ChildrenChange& change) |
59 { | 59 { |
60 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 60 HTMLElement::childrenChanged(change); |
61 if (!changedByParser) | 61 if (!change.byParser) |
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 |
OLD | NEW |