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

Unified Diff: Source/core/css/CSSFontFaceRule.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 | « no previous file | Source/core/css/CSSFontFaceSrcValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontFaceRule.h
diff --git a/Source/core/css/CSSFontFaceRule.h b/Source/core/css/CSSFontFaceRule.h
index a042e8fee4154280f5be72a23bb0bbaf894101af..1be5c3a721cb92b0772786e7e2f4b76e100058e4 100644
--- a/Source/core/css/CSSFontFaceRule.h
+++ b/Source/core/css/CSSFontFaceRule.h
@@ -42,6 +42,8 @@ public:
CSSStyleDeclaration* style() const;
+ StyleRuleFontFace* styleRule() const { return m_fontFaceRule.get(); }
+
private:
CSSFontFaceRule(StyleRuleFontFace*, CSSStyleSheet* parent);
@@ -49,6 +51,12 @@ private:
mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
};
+inline CSSFontFaceRule* toCSSFontFaceRule(CSSRule* rule)
+{
+ ASSERT_WITH_SECURITY_IMPLICATION(rule->type() == CSSRule::FONT_FACE_RULE);
+ return static_cast<CSSFontFaceRule*>(rule);
+}
+
} // namespace WebCore
#endif // CSSFontFaceRule_h
« no previous file with comments | « no previous file | Source/core/css/CSSFontFaceSrcValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698