Bug 138911 - Web Inspector: do not show invalid specificity for dynamic cases of :matches()
Summary: Web Inspector: do not show invalid specificity for dynamic cases of :matches()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-19 20:45 PST by Benjamin Poulain
Modified: 2014-11-20 20:30 PST (History)
0 users

See Also:


Attachments
Patch (8.70 KB, patch)
2014-11-19 20:48 PST, Benjamin Poulain
joepeck: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2014-11-19 20:45:03 PST
Web Inspector: do not show invalid specificity for dynamic cases of :matches()
Comment 1 Benjamin Poulain 2014-11-19 20:48:10 PST
Created attachment 241922 [details]
Patch
Comment 2 Joseph Pecoraro 2014-11-20 16:46:58 PST
Comment on attachment 241922 [details]
Patch

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

> Source/WebCore/css/CSSSelector.cpp:179
> +    staticSpecificity = CSSSelector::addSpecificities(staticSpecificity, functionalPseudoClassStaticSpecificity(firstSimpleSelector, ok));
> +    return staticSpecificity;

One line?
Comment 3 Benjamin Poulain 2014-11-20 20:30:52 PST
Committed r176436: <http://trac.webkit.org/changeset/176436>