Commit 47dbe8c2 authored by shrikant's avatar shrikant Committed by Commit bot

DirectWrite: Removed font file name limit when loading from registry.

As per original implementation, our intention was to have fixed width for file in cache file.
For loading from registry we can load file name of any length.

BUG=472938
R=cpu

Review URL: https://codereview.chromium.org/1063893002

Cr-Commit-Position: refs/heads/master@{#324073}
parent 0b011504
...@@ -793,8 +793,7 @@ bool FontCollectionLoader::LoadFontListFromRegistry() { ...@@ -793,8 +793,7 @@ bool FontCollectionLoader::LoadFontListFromRegistry() {
// we will ignore all other registry entries. // we will ignore all other registry entries.
std::vector<base::FilePath::StringType> components; std::vector<base::FilePath::StringType> components;
path.GetComponents(&components); path.GetComponents(&components);
if ((components.size() == 1 && if (components.size() == 1 ||
value.size() < kMaxFontFileNameLength - 1) ||
base::FilePath::CompareEqualIgnoreCase(system_font_path.value(), base::FilePath::CompareEqualIgnoreCase(system_font_path.value(),
path.DirName().value())) { path.DirName().value())) {
bool should_ignore = false; bool should_ignore = false;
......
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