Bug 135324

Summary: CSS: Fix :visited behavior for SubSelectors
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: CSSAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, benjamin, buildbot, commit-queue, kling, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 135293    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2 none

Description Yusuke Suzuki 2014-07-26 10:52:02 PDT
Investigating the :visited behavior, I found that current :visited disable fix is only available for the selectors which doesn't has subselectors[1].

[1]: http://trac.webkit.org/browser/trunk/Source/WebCore/css/SelectorChecker.cpp?rev=171646#L214
Comment 1 Yusuke Suzuki 2014-07-26 11:01:10 PDT
Created attachment 235575 [details]
Patch
Comment 2 Yusuke Suzuki 2014-07-26 11:02:44 PDT
Comment on attachment 235575 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=235575&action=review

Added comments.

> LayoutTests/fast/history/nested-visited-test-complex.html:30
> +:visited.ok > span.ok { color: orange }

These `.ok` are added.

> LayoutTests/fast/history/sibling-visited-test-complex.html:21
> +:visited + :link.ok { color: green }

This `.ok` is added.
Comment 3 Build Bot 2014-07-26 12:01:32 PDT
Comment on attachment 235575 [details]
Patch

Attachment 235575 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6446507314118656

New failing tests:
media/track/add-and-remove-track.html
Comment 4 Build Bot 2014-07-26 12:01:35 PDT
Created attachment 235577 [details]
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-15  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 5 Benjamin Poulain 2014-07-28 02:06:44 PDT
Comment on attachment 235575 [details]
Patch

Yep, you are absolutely right. Good catch!
Comment 6 WebKit Commit Bot 2014-07-28 02:49:03 PDT
Comment on attachment 235575 [details]
Patch

Clearing flags on attachment: 235575

Committed r171675: <http://trac.webkit.org/changeset/171675>
Comment 7 WebKit Commit Bot 2014-07-28 02:49:06 PDT
All reviewed patches have been landed.  Closing bug.