Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(863)

Issue 2337193004: Setting the link title may change the preferred set. (Closed)

Created:
4 years, 3 months ago by rune
Modified:
4 years, 3 months ago
Reviewers:
Timothy Loh, Yoav Weiss
CC:
chromium-reviews, Yoav Weiss, blink-reviews-html_chromium.org, gavinp+prerender_chromium.org, blink-reviews-style_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Setting 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -18 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/change-title-enabling-alternate.html View 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 4 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.cpp View 1 2 5 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (19 generated)
rune
ptal timloh/yoav, you reviewed the offending CL [1]. [1] https://codereview.chromium.org/2079303002
4 years, 3 months ago (2016-09-15 14:20:08 UTC) #18
Timothy Loh
On 2016/09/15 14:20:08, rune wrote: > ptal > > timloh/yoav, you reviewed the offending CL ...
4 years, 3 months ago (2016-09-16 03:46:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2337193004/40001
4 years, 3 months ago (2016-09-16 05:46:43 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-16 05:51:23 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 05:53:21 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eda0b8d43b6ee62b68639bb10b9a0f76333a3304
Cr-Commit-Position: refs/heads/master@{#419107}

Powered by Google App Engine
This is Rietveld 408576698