X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fhtml%2FHTMLAllCollection.cpp;h=cf4ce61f75f4c715b3826bd3f76f2bbb9a9e523a;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=38c620a350bca0ae1c8c60a1facb36581f56d86a;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp b/src/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp index 38c620a..cf4ce61 100644 --- a/src/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp +++ b/src/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp @@ -27,9 +27,9 @@ #include "core/html/HTMLAllCollection.h" #include "core/dom/Element.h" -#include "core/dom/NamedNodesCollection.h" +#include "core/dom/StaticNodeList.h" -namespace WebCore { +namespace blink { PassRefPtrWillBeRawPtr HTMLAllCollection::create(ContainerNode& node, CollectionType type) { @@ -66,7 +66,7 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigne return 0; } -void HTMLAllCollection::namedGetter(const AtomicString& name, bool& returnValue0Enabled, RefPtrWillBeRawPtr& returnValue0, bool& returnValue1Enabled, RefPtrWillBeRawPtr& returnValue1) +void HTMLAllCollection::namedGetter(const AtomicString& name, RefPtrWillBeRawPtr& returnValue0, RefPtrWillBeRawPtr& returnValue1) { WillBeHeapVector > namedItems; this->namedItems(name, namedItems); @@ -75,15 +75,13 @@ void HTMLAllCollection::namedGetter(const AtomicString& name, bool& returnValue0 return; if (namedItems.size() == 1) { - returnValue1Enabled = true; returnValue1 = namedItems.at(0); return; } // FIXME: HTML5 specification says this should be a HTMLCollection. // http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#htmlallcollection - returnValue0Enabled = true; - returnValue0 = NamedNodesCollection::create(namedItems); + returnValue0 = StaticElementList::adopt(namedItems); } -} // namespace WebCore +} // namespace blink