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

Unified Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 13646013: Enable support for CSS Conditional Rules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/StyleSheetContents.cpp ('k') | Source/core/page/DOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp
index bea104959a4043d01957966471ae6d4576735b27..7c7255169aa5fb8645d1f6009e22e015d7a89214 100644
--- a/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/Source/core/inspector/InspectorStyleSheet.cpp
@@ -112,10 +112,8 @@ static void flattenSourceData(RuleSourceDataList* dataList, RuleSourceDataList*
flattenSourceData(&data->childRules, target);
else if (data->type == CSSRuleSourceData::HOST_RULE)
flattenSourceData(&data->childRules, target);
-#if ENABLE(CSS3_CONDITIONAL_RULES)
else if (data->type == CSSRuleSourceData::SUPPORTS_RULE)
flattenSourceData(&data->childRules, target);
-#endif
}
}
@@ -444,10 +442,8 @@ static PassRefPtr<CSSRuleList> asCSSRuleList(CSSRule* rule)
if (rule->type() == CSSRule::HOST_RULE)
return static_cast<CSSHostRule*>(rule)->cssRules();
-#if ENABLE(CSS3_CONDITIONAL_RULES)
if (rule->type() == CSSRule::SUPPORTS_RULE)
return static_cast<CSSSupportsRule*>(rule)->cssRules();
-#endif
return 0;
}
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/page/DOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698