Commit fb607474 authored by thomasanderson's avatar thomasanderson Committed by Commit bot
Browse files

Fix content shell layout test failure related to Fontconfig

Work around an issue that only occurs on libfontconfig.so.1.9.0

Also update a comment that's no longer accurate

BUG=621695

Review-Url: https://codereview.chromium.org/2104653002
Cr-Commit-Position: refs/heads/master@{#402342}
parent 080f7156
......@@ -72,9 +72,11 @@ void SetUpFontconfig() {
// - FcConfigReference() increments a config's refcount.
// - FcConfigDestroy() decrements a config's refcount, deallocating the
// config when the count reaches 0.
// - FcConfigSetCurrent() calls FcConfigDestroy() on the old config, but
// interestingly does not call FcConfigReference() on the new config.
CHECK(FcConfigSetCurrent(FcConfigCreate()));
// - FcConfigSetCurrent() calls FcConfigDestroy() on the old config, and
// calls FcConfigReference() on the new config.
FcConfig* config = FcConfigCreate();
FcConfigBuildFonts(config);
CHECK(FcConfigSetCurrent(config));
}
void TearDownFontconfig() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment