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

Unified Diff: Source/core/css/CSSImportRule.h

Issue 23202008: Add font support to PageSerializer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding font (I've heard this might work now) Created 7 years, 3 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/CSSFontFaceSrcValue.h ('k') | Source/core/css/CSSStyleRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImportRule.h
diff --git a/Source/core/css/CSSImportRule.h b/Source/core/css/CSSImportRule.h
index a4ccaf449b8b24b809f90611ac6f7daaae546c65..b16e943b58524cbf8354070abd35068931b06d0e 100644
--- a/Source/core/css/CSSImportRule.h
+++ b/Source/core/css/CSSImportRule.h
@@ -53,6 +53,12 @@ private:
mutable RefPtr<CSSStyleSheet> m_styleSheetCSSOMWrapper;
};
+inline CSSImportRule* toCSSImportRule(CSSRule* rule)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(rule->type() == CSSRule::IMPORT_RULE);
+ return static_cast<CSSImportRule*>(rule);
+}
+
} // namespace WebCore
#endif // CSSImportRule_h
« no previous file with comments | « Source/core/css/CSSFontFaceSrcValue.h ('k') | Source/core/css/CSSStyleRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698