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

Unified Diff: Source/core/html/HTMLAllCollection.cpp

Issue 15724005: [Binding] Support primitive type for union member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: do not inherit getter. rename DoNotCheckJSProperty to OverrideBuiltins Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLAllCollection.cpp
diff --git a/Source/core/html/HTMLAllCollection.cpp b/Source/core/html/HTMLAllCollection.cpp
index 8a7d248815fff0919c69d59153048485dde82a45..792a648b7a66d6810b6f7e04874bbf0bfcd10747 100644
--- a/Source/core/html/HTMLAllCollection.cpp
+++ b/Source/core/html/HTMLAllCollection.cpp
@@ -64,7 +64,7 @@ Node* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigned i
return 0;
}
-void HTMLAllCollection::anonymousNamedGetter(const AtomicString& name, RefPtr<NodeList>& returnValue1, RefPtr<Node>& returnValue2)
+void HTMLAllCollection::anonymousNamedGetter(const AtomicString& name, bool& returnValue0Enabled, RefPtr<NodeList>& returnValue0, bool& returnValue1Enabled, RefPtr<Node>& returnValue1)
{
Vector<RefPtr<Node> > namedItems;
this->namedItems(name, namedItems);
@@ -73,13 +73,15 @@ void HTMLAllCollection::anonymousNamedGetter(const AtomicString& name, RefPtr<No
return;
if (namedItems.size() == 1) {
- returnValue2 = namedItems.at(0);
+ 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
- returnValue1 = NamedNodesCollection::create(namedItems);
+ returnValue0Enabled = true;
+ returnValue0 = NamedNodesCollection::create(namedItems);
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698