DescriptionSetting the link title may change the preferred set.
Make sure we set the preferred style sheet set when setting the title
attribute as long as the preferred set name is not already set.
This used to somehow work if the title was set during loading of a
stylesheet since the preferred set name was set during active
stylesheet collection. In other cases, it didn't work until another
stylesheet operation caused a re-collection of active stylesheets.
When setting the preferred name was moved into the LinkStyle::process()
code, it didn't work at all to set the title after the stylesheet
starts loading.
Make sure we set the preferred set name and trigger an active
stylesheet update when the title is changed.
BUG=645699
Committed: https://crrev.com/eda0b8d43b6ee62b68639bb10b9a0f76333a3304
Cr-Commit-Position: refs/heads/master@{#419107}
Patch Set 1 #Patch Set 2 : Removed unnecessary active stylesheet updates #Patch Set 3 : Rebased #
Messages
Total messages: 24 (19 generated)
|