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

Unified Diff: Source/core/css/CSSTestHelper.cpp

Issue 181403005: Introduce TerminatedArray<T> type to make data-structure used by RuleSet visible at the type level. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 | « Source/core/css/CSSTestHelper.h ('k') | Source/core/css/ElementRuleCollector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSTestHelper.cpp
diff --git a/Source/core/css/CSSTestHelper.cpp b/Source/core/css/CSSTestHelper.cpp
index d0fac9fa03aa49127fdfcf7bd441c12b7ec33795..3b24d9c75e44f8dcf59fabefacdb7c7815c7587b 100644
--- a/Source/core/css/CSSTestHelper.cpp
+++ b/Source/core/css/CSSTestHelper.cpp
@@ -67,26 +67,4 @@ void CSSTestHelper::addCSSRules(const char* cssText)
ASSERT_TRUE(m_styleSheet->length() > sheetLength);
}
-int CSSTestHelper::numRules(const RuleData* ruleData)
-{
- if (!ruleData)
- return 0;
- int count = 1;
- while (!ruleData->isLastInArray()) {
- ruleData++;
- count++;
- }
- return count;
-}
-
-const RuleData& CSSTestHelper::getRule(const RuleData* ruleData, int index)
-{
- int count = 0;
- while (!ruleData->isLastInArray() && count < index) {
- ruleData++;
- count++;
- }
- return *ruleData;
-}
-
} // namespace WebCore
« no previous file with comments | « Source/core/css/CSSTestHelper.h ('k') | Source/core/css/ElementRuleCollector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698