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

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

Issue 1955723004: Implement font-variant-numeric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 7 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: third_party/WebKit/Source/core/css/resolver/FontBuilder.h
diff --git a/third_party/WebKit/Source/core/css/resolver/FontBuilder.h b/third_party/WebKit/Source/core/css/resolver/FontBuilder.h
index 05ac7ca1c9ba32bc2dd6d628f639e846eff330af..395b3e82c3d46795ee3ae81484c3ad4516b4bd92 100644
--- a/third_party/WebKit/Source/core/css/resolver/FontBuilder.h
+++ b/third_party/WebKit/Source/core/css/resolver/FontBuilder.h
@@ -27,6 +27,7 @@
#include "core/CoreExport.h"
#include "core/css/FontSize.h"
#include "platform/fonts/FontDescription.h"
+#include "platform/fonts/FontVariantNumeric.h"
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
@@ -64,6 +65,7 @@ public:
void setStyle(FontStyle);
void setVariantCaps(FontDescription::FontVariantCaps);
void setVariantLigatures(const FontDescription::VariantLigatures&);
+ void setVariantNumeric(const FontVariantNumeric&);
void setTextRendering(TextRenderingMode);
void setKerning(FontDescription::Kerning);
void setFontSmoothing(FontSmoothingMode);
@@ -83,6 +85,7 @@ public:
static TextRenderingMode initialTextRendering() { return AutoTextRendering; }
static FontDescription::FontVariantCaps initialVariantCaps() { return FontDescription::CapsNormal; }
static FontDescription::VariantLigatures initialVariantLigatures() { return FontDescription::VariantLigatures(); }
+ static FontVariantNumeric initialVariantNumeric() { return FontVariantNumeric(); };
static const AtomicString& initialLocale() { return nullAtom; }
static FontStyle initialStyle() { return FontStyleNormal; }
static FontDescription::Kerning initialKerning() { return FontDescription::AutoKerning; }
@@ -117,6 +120,7 @@ private:
SizeAdjust,
VariantCaps,
VariantLigatures,
+ VariantNumeric,
TextRendering,
Kerning,
FontSmoothing,

Powered by Google App Engine
This is Rietveld 408576698