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

Unified Diff: third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.cpp

Issue 56198: Roll out dominantScript, getGenericFontForScript patches to unfork a bunch of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/WebCore/rendering/RenderThemeChromiumLinux.cpp
===================================================================
--- third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.cpp (revision 13094)
+++ third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.cpp (working copy)
@@ -88,7 +88,7 @@
// FIXME: The only case where we know we don't match IE is for ANSI encodings.
// IE uses MS Shell Dlg there, which we render incorrectly at certain pixel
// sizes (e.g. 15px). So, for now we just use Arial.
-static const char* defaultGUIFont(Document* document)
+static const char* defaultGUIFont()
{
return "Arial";
}
@@ -155,7 +155,7 @@
return 0.5;
}
-void RenderThemeChromiumLinux::systemFont(int propId, Document* document, FontDescription& fontDescription) const
+void RenderThemeChromiumLinux::systemFont(int propId, FontDescription& fontDescription) const
{
float fontSize = DefaultFontSize;
@@ -172,7 +172,7 @@
break;
}
- fontDescription.firstFamily().setFamily(defaultGUIFont(NULL));
+ fontDescription.firstFamily().setFamily(defaultGUIFont());
fontDescription.setSpecifiedSize(fontSize);
fontDescription.setIsAbsoluteSize(true);
fontDescription.setGenericFamily(FontDescription::NoFamily);

Powered by Google App Engine
This is Rietveld 408576698