Index: Source/core/html/HTMLCollection.cpp |
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp |
index ab7115febeab54ce8e6685399ac3df6d9288ed3c..7b402c36b0324f3426b0ef35b5a9febda1672ee8 100644 |
--- a/Source/core/html/HTMLCollection.cpp |
+++ b/Source/core/html/HTMLCollection.cpp |
@@ -37,7 +37,7 @@ namespace WebCore { |
using namespace HTMLNames; |
-static bool shouldOnlyIncludeDirectChildren(CollectionType type) |
+static bool shouldTypeOnlyIncludeDirectChildren(CollectionType type) |
{ |
switch (type) { |
case ClassCollectionType: |
@@ -159,9 +159,9 @@ static NodeListInvalidationType invalidationTypeExcludingIdAndNameAttributes(Col |
} |
HTMLCollection::HTMLCollection(ContainerNode* ownerNode, CollectionType type, ItemAfterOverrideType itemAfterOverrideType) |
- : LiveNodeListBase(ownerNode, rootTypeFromCollectionType(type), invalidationTypeExcludingIdAndNameAttributes(type), |
- WebCore::shouldOnlyIncludeDirectChildren(type), type) |
+ : LiveNodeListBase(ownerNode, rootTypeFromCollectionType(type), invalidationTypeExcludingIdAndNameAttributes(type), type) |
, m_overridesItemAfter(itemAfterOverrideType == OverridesItemAfter) |
+ , m_shouldOnlyIncludeDirectChildren(shouldTypeOnlyIncludeDirectChildren(type)) |
, m_isNameCacheValid(false) |
{ |
ScriptWrappable::init(this); |