DescriptionWhen a font family pref changes to the empty string, pass it to WebKit.
The empty string means to fall back to the pref for the Common script ("Zyyy").
For example, if chrome.fonts.serif.Cyrl is the empty string, it means to use
chrome.fonts.serif.Zyyy for Cyrillic script. Prefs that are the empty string are
normally not passed to WebKit since there are so many of them that doing so
would cause a perf regression (see r164050 and its revert r164294). Not passing
the pref is normally okay since WebKit does the desired fallback behavior
regardless of whether the empty string is passed or the pref is not passed at
all. But if the pref has changed from non-empty to the empty string, we must
let WebKit know.
BUG=157558
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165125
Patch Set 1 #Patch Set 2 : revise comment #
Total comments: 2
Patch Set 3 : fix nit #
Total comments: 11
Patch Set 4 : review comments #Patch Set 5 : add unit test #
Total comments: 11
Patch Set 6 : sync #Patch Set 7 : review comments #
Messages
Total messages: 17 (0 generated)
|