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

Unified Diff: Source/core/css/resolver/FontBuilder.h

Issue 186403002: Make font-related CSS properties less custom. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments. Created 6 years, 10 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/CSSProperties.in ('k') | Source/core/css/resolver/FontBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/FontBuilder.h
diff --git a/Source/core/css/resolver/FontBuilder.h b/Source/core/css/resolver/FontBuilder.h
index ab44a4f4cf3434e7a0d562f939f98f2596c287c4..1486c01ab97cc9ce9d2566028f591a2d35eca8d2 100644
--- a/Source/core/css/resolver/FontBuilder.h
+++ b/Source/core/css/resolver/FontBuilder.h
@@ -73,7 +73,7 @@ public:
void setScript(const String& locale);
void setItalic(FontItalic);
void setSmallCaps(FontSmallCaps);
- void setTextRenderingMode(TextRenderingMode);
+ void setTextRendering(TextRenderingMode);
void setKerning(FontDescription::Kerning);
void setFontSmoothing(FontSmoothingMode);
@@ -90,7 +90,14 @@ public:
// FIXME: This is only used by an ASSERT in StyleResolver. Remove?
bool fontDirty() const { return m_fontDirty; }
+ static TextRenderingMode initialTextRendering() { return AutoTextRendering; }
+ static FontSmallCaps initialSmallCaps() { return FontSmallCapsOff; }
+ static FontItalic initialItalic() { return FontItalicOff; }
+ static FontDescription::Kerning initialKerning() { return FontDescription::AutoKerning; }
+ static FontSmoothingMode initialFontSmoothing() { return AutoSmoothing; }
+
friend class FontDescriptionChangeScope;
+
private:
// FIXME: "size" arg should be first for consistency with other similar functions.
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/resolver/FontBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698