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

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

Issue 677103002: Expand system font values during property parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove isExpandedShorthandForAll. Created 6 years, 2 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/resolver/FontBuilder.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/FontBuilder.cpp
diff --git a/Source/core/css/resolver/FontBuilder.cpp b/Source/core/css/resolver/FontBuilder.cpp
index 7f4d680f916a0fc056f7ac357f985c0e6061162a..a0cc60f30b974333e9b440d58ec892fdcb5ed2ae 100644
--- a/Source/core/css/resolver/FontBuilder.cpp
+++ b/Source/core/css/resolver/FontBuilder.cpp
@@ -93,28 +93,6 @@ void FontBuilder::didChangeFontParameters(bool changed)
m_fontDirty |= changed;
}
-void FontBuilder::fromSystemFont(CSSValueID valueId, float effectiveZoom)
-{
- FontDescriptionChangeScope scope(this);
-
- FontDescription fontDescription;
- RenderTheme::theme().systemFont(valueId, fontDescription);
-
- // Double-check and see if the theme did anything. If not, don't bother updating the font.
- if (!fontDescription.isAbsoluteSize())
- return;
-
- // Make sure the rendering mode and printer font settings are updated.
- const Settings* settings = m_document.settings();
- ASSERT(settings); // If we're doing style resolution, this document should always be in a frame and thus have settings
- if (!settings)
- return;
-
- // Handle the zoom factor.
- fontDescription.setComputedSize(getComputedSizeFromSpecifiedSize(fontDescription, effectiveZoom, fontDescription.specifiedSize()));
- scope.set(fontDescription);
-}
-
FontFamily FontBuilder::standardFontFamily() const
{
FontFamily family;
« no previous file with comments | « Source/core/css/resolver/FontBuilder.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698