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

Unified Diff: Source/core/dom/LiveNodeListBase.h

Issue 180393002: Remove unused NodeListIsRootedAtDocumentIfOwnerHasItemrefAttr NodeListRootType value (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/LiveNodeListBase.h
diff --git a/Source/core/dom/LiveNodeListBase.h b/Source/core/dom/LiveNodeListBase.h
index 098d8ddfcce190a3990ec3465e337ff0c38c3ca4..babfcb0a91487d2bbe298502b1f03725526f4821 100644
--- a/Source/core/dom/LiveNodeListBase.h
+++ b/Source/core/dom/LiveNodeListBase.h
@@ -33,8 +33,7 @@ namespace WebCore {
enum NodeListRootType {
NodeListIsRootedAtNode,
- NodeListIsRootedAtDocument,
- NodeListIsRootedAtDocumentIfOwnerHasItemrefAttr,
+ NodeListIsRootedAtDocument
};
class LiveNodeListBase {
@@ -63,7 +62,7 @@ public:
void didMoveToDocument(Document& oldDocument, Document& newDocument);
ALWAYS_INLINE bool hasIdNameCache() const { return !isLiveNodeListType(type()); }
- ALWAYS_INLINE bool isRootedAtDocument() const { return m_rootType == NodeListIsRootedAtDocument || m_rootType == NodeListIsRootedAtDocumentIfOwnerHasItemrefAttr; }
+ ALWAYS_INLINE bool isRootedAtDocument() const { return m_rootType == NodeListIsRootedAtDocument; }
ALWAYS_INLINE NodeListInvalidationType invalidationType() const { return static_cast<NodeListInvalidationType>(m_invalidationType); }
ALWAYS_INLINE CollectionType type() const { return static_cast<CollectionType>(m_collectionType); }
ContainerNode* ownerNode() const { return m_ownerNode.get(); }
@@ -92,7 +91,7 @@ private:
void invalidateIdNameCacheMaps() const;
RefPtr<ContainerNode> m_ownerNode; // Cannot be null.
- const unsigned m_rootType : 2;
+ const unsigned m_rootType : 1;
const unsigned m_invalidationType : 4;
const unsigned m_collectionType : 5;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698