Chromium Code Reviews
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
Review-Url: https://codereview.chromium.org/2337193004
Cr-Commit-Position: refs/heads/master@{#419107}
(cherry picked from commit eda0b8d43b6ee62b68639bb10b9a0f76333a3304)
Conflicts:
third_party/WebKit/Source/core/html/HTMLLinkElement.h
Committed: https://chromium.googlesource.com/chromium/src/+/7afc70c366cbd7fcb0ae9f0e767e6a35ccb5ea40
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||