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

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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSTestHelper.h ('k') | Source/core/css/RuleFeature.cpp » ('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 93f16ae3edac7bc342c1dc9841c679b720a241b4..7f7819d44b5068a407fc2588cd1874155799893b 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();
- m_styleSheet->contents()->parseStringAtPosition(cssText, position, true);
+ tryAddCSSRules(cssText);
ASSERT_TRUE(m_styleSheet->length() > sheetLength);
}
+void CSSTestHelper::tryAddCSSRules(const char* cssText)
+{
+ TextPosition position;
+ m_styleSheet->contents()->parseStringAtPosition(cssText, position, true);
+}
+
} // namespace blink
« no previous file with comments | « Source/core/css/CSSTestHelper.h ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698