Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Inspector: CSS autocomplete: property usage counts should ignore variables #2124

Merged
merged 1 commit into from Jul 6, 2022

Conversation

dcrousso
Copy link
Member

@dcrousso dcrousso commented Jul 6, 2022

714fd40

Web Inspector: CSS autocomplete: property usage counts should ignore variables
https://bugs.webkit.org/show_bug.cgi?id=242397

Reviewed by Patrick Angle.

CSS variables are probably pretty unlikely to have the same named across multiple sites, and it's
also somewhat unlikely they'll be used that often (plus many sites have a gazillion of them).

* Source/WebInspectorUI/UserInterface/Models/CSSProperty.js:
(WI.CSSProperty.isVariable): Added.
(WI.CSSProperty.isInheritedPropertyName):
(WI.CSSProperty.prototype.update):
(WI.CSSProperty.prototype._updateName):

* LayoutTests/inspector/css/css-property.html:
* LayoutTests/inspector/css/css-property-expected.txt:

* Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js:
(WI.CSSStyleDeclaration.prototype.resolveVariableValue):
* Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype._addVariableTokens):
Drive-by: Use the new utility `WI.CSSProperty.isVariable` instead of repeating the logic.

Canonical link: https://commits.webkit.org/252195@main

@dcrousso dcrousso self-assigned this Jul 6, 2022
@dcrousso dcrousso added Web Inspector Bugs related to the WebKit Web Inspector. WebKit Nightly Build labels Jul 6, 2022
@webkit-early-warning-system webkit-early-warning-system added the merging-blocked Applied to prevent a change from being merged label Jul 6, 2022
@dcrousso dcrousso removed the merging-blocked Applied to prevent a change from being merged label Jul 6, 2022
@dcrousso dcrousso added unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing labels Jul 6, 2022
@dcrousso dcrousso added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jul 6, 2022
…variables

https://bugs.webkit.org/show_bug.cgi?id=242397

Reviewed by Patrick Angle.

CSS variables are probably pretty unlikely to have the same named across multiple sites, and it's
also somewhat unlikely they'll be used that often (plus many sites have a gazillion of them).

* Source/WebInspectorUI/UserInterface/Models/CSSProperty.js:
(WI.CSSProperty.isVariable): Added.
(WI.CSSProperty.isInheritedPropertyName):
(WI.CSSProperty.prototype.update):
(WI.CSSProperty.prototype._updateName):

* LayoutTests/inspector/css/css-property.html:
* LayoutTests/inspector/css/css-property-expected.txt:

* Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js:
(WI.CSSStyleDeclaration.prototype.resolveVariableValue):
* Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype._addVariableTokens):
Drive-by: Use the new utility `WI.CSSProperty.isVariable` instead of repeating the logic.

Canonical link: https://commits.webkit.org/252195@main
@webkit-commit-queue
Copy link
Collaborator

Committed 252195@main (714fd40): https://commits.webkit.org/252195@main

Reviewed commits have been landed. Closing PR #2124 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 714fd40 into WebKit:main Jul 6, 2022
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jul 6, 2022
@dcrousso dcrousso deleted the eng/242397 branch July 6, 2022 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Web Inspector Bugs related to the WebKit Web Inspector.
Projects
None yet
4 participants