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

Side by Side Diff: Source/core/css/CSSSelectorList.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSRuleList.cpp ('k') | Source/core/css/CSSSelectorList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 return current - m_selectorArray; 58 return current - m_selectorArray;
59 } 59 }
60 60
61 bool selectorsNeedNamespaceResolution(); 61 bool selectorsNeedNamespaceResolution();
62 bool hasInvalidSelector() const; 62 bool hasInvalidSelector() const;
63 63
64 bool hasShadowDistributedAt(size_t index) const; 64 bool hasShadowDistributedAt(size_t index) const;
65 65
66 String selectorsText() const; 66 String selectorsText() const;
67 67
68 void reportMemoryUsage(MemoryObjectInfo*) const;
69
70 private: 68 private:
71 unsigned length() const; 69 unsigned length() const;
72 void deleteSelectors(); 70 void deleteSelectors();
73 71
74 // End of a multipart selector is indicated by m_isLastInTagHistory bit in t he last item. 72 // End of a multipart selector is indicated by m_isLastInTagHistory bit in t he last item.
75 // End of the array is indicated by m_isLastInSelectorList bit in the last i tem. 73 // End of the array is indicated by m_isLastInSelectorList bit in the last i tem.
76 CSSSelector* m_selectorArray; 74 CSSSelector* m_selectorArray;
77 }; 75 };
78 76
79 inline const CSSSelector* CSSSelectorList::next(const CSSSelector* current) 77 inline const CSSSelector* CSSSelectorList::next(const CSSSelector* current)
80 { 78 {
81 // Skip subparts of compound selectors. 79 // Skip subparts of compound selectors.
82 while (!current->isLastInTagHistory()) 80 while (!current->isLastInTagHistory())
83 current++; 81 current++;
84 return current->isLastInSelectorList() ? 0 : current + 1; 82 return current->isLastInSelectorList() ? 0 : current + 1;
85 } 83 }
86 84
87 } // namespace WebCore 85 } // namespace WebCore
88 86
89 #endif // CSSSelectorList_h 87 #endif // CSSSelectorList_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSRuleList.cpp ('k') | Source/core/css/CSSSelectorList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698