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

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: 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
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..f84c719a9534a28b99ee4c2197fdf266078092c6 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);
@@ -91,6 +91,13 @@ public:
bool fontDirty() const { return m_fontDirty; }
friend class FontDescriptionChangeScope;
+public:
Timothy Loh 2014/03/04 05:58:22 Looks like we're already public.
dglazkov 2014/03/05 04:05:19 Removed.
+ 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; }
+
private:
// FIXME: "size" arg should be first for consistency with other similar functions.

Powered by Google App Engine
This is Rietveld 408576698