| 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
|
|
|