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

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

Issue 778003003: List marker pseudo elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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/css/CSSTestHelper.cpp
diff --git a/Source/core/css/CSSTestHelper.cpp b/Source/core/css/CSSTestHelper.cpp
index 85b88f4b64ac404675cadea69e284093ab5e47bc..7cf09b1f25b411e95da524410900edb897dfc067 100644
--- a/Source/core/css/CSSTestHelper.cpp
+++ b/Source/core/css/CSSTestHelper.cpp
@@ -61,10 +61,15 @@ RuleSet& CSSTestHelper::ruleSet()
void CSSTestHelper::addCSSRules(const char* cssText)
{
- TextPosition position;
unsigned sheetLength = m_styleSheet->length();
- ASSERT_TRUE(m_styleSheet->contents()->parseStringAtPosition(cssText, position, true));
+ tryAddCSSRules(cssText);
ASSERT_TRUE(m_styleSheet->length() > sheetLength);
}
+void CSSTestHelper::tryAddCSSRules(const char* cssText)
+{
+ TextPosition position;
+ ASSERT_TRUE(m_styleSheet->contents()->parseStringAtPosition(cssText, position, true));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698