| Index: Source/core/css/StyleSheetContents.cpp
|
| diff --git a/Source/core/css/StyleSheetContents.cpp b/Source/core/css/StyleSheetContents.cpp
|
| index b02d42646aa4f8feeb41fc05feb61d41b0f1bc64..ba51d60963716f6bdc20b00d52404b670b9e2508 100644
|
| --- a/Source/core/css/StyleSheetContents.cpp
|
| +++ b/Source/core/css/StyleSheetContents.cpp
|
| @@ -137,11 +137,9 @@ void StyleSheetContents::parserAppendRule(PassRefPtr<StyleRuleBase> rule)
|
| return;
|
| }
|
|
|
| -#if ENABLE(RESOLUTION_MEDIA_QUERY)
|
| // Add warning message to inspector if dpi/dpcm values are used for screen media.
|
| if (rule->isMediaRule())
|
| reportMediaQueryWarningIfNeeded(singleOwnerDocument(), static_cast<StyleRuleMedia*>(rule.get())->mediaQueries());
|
| -#endif
|
|
|
| m_childRules.append(rule);
|
| }
|
| @@ -149,7 +147,7 @@ void StyleSheetContents::parserAppendRule(PassRefPtr<StyleRuleBase> rule)
|
| StyleRuleBase* StyleSheetContents::ruleAt(unsigned index) const
|
| {
|
| ASSERT_WITH_SECURITY_IMPLICATION(index < ruleCount());
|
| -
|
| +
|
| unsigned childVectorIndex = index;
|
| if (hasCharsetRule()) {
|
| if (index == 0)
|
|
|