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

Issue 1910433002: Invalidate LinkHash state for links in shadow roots (Closed)

Created:
4 years, 8 months ago by kochi
Modified:
4 years, 8 months ago
Reviewers:
tkent, esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, hayato, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate LinkHash state for links in shadow roots When link history state changed, :visited style can change, but it used to work only for links in document node tree. This CL fixes to make it work also for links in shadow node trees. Writing a layout test for this is harder than expected; tried using <iframe> to change history state, but it did not working as expected. Here's a manual test for this case. http://jsbin.com/yipozul/6/edit?html,output BUG=405707 TEST=manual Committed: https://crrev.com/62f710730c5aa2fa021a6eee7487c5d799e867f3 Cr-Commit-Position: refs/heads/master@{#388710}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Add missing include. #

Total comments: 4

Patch Set 4 : fix for comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M third_party/WebKit/Source/core/dom/VisitedLinkState.cpp View 1 2 3 3 chunks +25 lines, -8 lines 2 comments Download

Messages

Total messages: 27 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910433002/1
4 years, 8 months ago (2016-04-20 11:53:06 UTC) #2
kochi
tkent-san, could you review?
4 years, 8 months ago (2016-04-20 11:53:29 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/124742) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 8 months ago (2016-04-20 12:04:35 UTC) #6
kochi
the compile failure was due to a missing include (ElementShadow.h) which defined a inline method ...
4 years, 8 months ago (2016-04-21 02:09:04 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910433002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910433002/40001
4 years, 8 months ago (2016-04-21 02:09:33 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/200320)
4 years, 8 months ago (2016-04-21 02:20:51 UTC) #11
tkent
lgtm. I understand making a test for this is hard. As for C++ unit test, ...
4 years, 8 months ago (2016-04-21 03:55:24 UTC) #12
kochi
Thanks for the review. https://codereview.chromium.org/1910433002/diff/40001/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp File third_party/WebKit/Source/core/dom/VisitedLinkState.cpp (right): https://codereview.chromium.org/1910433002/diff/40001/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp#newcode82 third_party/WebKit/Source/core/dom/VisitedLinkState.cpp:82: if (m_linksCheckedForVisitedState.isEmpty()) On 2016/04/21 03:55:23, ...
4 years, 8 months ago (2016-04-21 04:13:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910433002/60001
4 years, 8 months ago (2016-04-21 04:14:28 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/208776)
4 years, 8 months ago (2016-04-21 06:08:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910433002/60001
4 years, 8 months ago (2016-04-21 06:12:53 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-21 07:26:28 UTC) #21
esprehn
You can remove all the kids from a Document before this IPC shows up. You ...
4 years, 8 months ago (2016-04-21 08:14:04 UTC) #23
kochi
On 2016/04/21 08:14:04, esprehn wrote: > You can remove all the kids from a Document ...
4 years, 8 months ago (2016-04-21 08:59:18 UTC) #24
kochi
On 2016/04/21 08:59:18, kochi wrote: > On 2016/04/21 08:14:04, esprehn wrote: > > You can ...
4 years, 8 months ago (2016-04-21 10:20:33 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:32:13 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/62f710730c5aa2fa021a6eee7487c5d799e867f3
Cr-Commit-Position: refs/heads/master@{#388710}

Powered by Google App Engine
This is Rietveld 408576698