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

Unified Diff: Source/core/css/CSSFontSelector.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
Index: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index d984785f0638362ca88bdce4deb68553a3cea4a3..0881d63f83f35c65a7422a78863a59cfdd4ac9fd 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -130,8 +130,9 @@ static AtomicString familyNameFromSettings(const GenericFontFamilySettings& sett
PassRefPtr<FontData> CSSFontSelector::getFontData(const FontDescription& fontDescription, const AtomicString& familyName)
{
- if (CSSSegmentedFontFace* face = m_fontFaceCache.get(fontDescription, familyName))
+ if (CSSSegmentedFontFace* face = m_fontFaceCache.get(fontDescription, familyName)) {
Kunihiko Sakamoto 2015/08/05 10:36:36 Unnecessary braces.
return face->getFontData(fontDescription);
+ }
// Try to return the correct font based off our settings, in case we were handed the generic font family name.
AtomicString settingsFamilyName = familyNameFromSettings(m_genericFontFamilySettings, fontDescription, familyName);

Powered by Google App Engine
This is Rietveld 408576698