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

Unified Diff: Source/web/PopupMenuImpl.cpp

Issue 1270723002: Improve CSS Style matching spec compliance (Closed) Base URL: git@github.com:drott/blink-crosswalk.git@reimplementMatching
Patch Set: TODOs with bugs, redundant file removed, test expectations fix Created 5 years, 4 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
« Source/core/css/FontStyleMatcher.cpp ('K') | « Source/platform/fonts/FontTraits.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PopupMenuImpl.cpp
diff --git a/Source/web/PopupMenuImpl.cpp b/Source/web/PopupMenuImpl.cpp
index 05ea02149ce9fd5dbe89ee2d1c3420a26ca28290..7085248c3103fec2c3bb9aa509fab69581945642 100644
--- a/Source/web/PopupMenuImpl.cpp
+++ b/Source/web/PopupMenuImpl.cpp
@@ -68,11 +68,15 @@ const char* fontVariantToString(FontVariant variant)
return nullptr;
}
+// TODO crbug.com/516675 Add stretch to serialization
+
const char* fontStyleToString(FontStyle style)
{
switch (style) {
case FontStyleNormal:
return "normal";
+ case FontStyleOblique:
+ return "oblique";
case FontStyleItalic:
return "italic";
}
« Source/core/css/FontStyleMatcher.cpp ('K') | « Source/platform/fonts/FontTraits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698