-
Notifications
You must be signed in to change notification settings - Fork 136
Pass rule start to parser rather than just a location. #277
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
Conversation
r? @SimonSapin / @upsuper / @heycam |
This is: * More generic, as the state has more information like the source index. * Slightly cheaper to compute, as the source location requires math to compute, which the parser state doesn't I need this to improve CSS sanitization in Gecko. https://bugzilla.mozilla.org/show_bug.cgi?id=1680084
Should we have a unit test for the fixed at-rule location? |
We have one integration test in Gecko for it and no existing tests for @bors-servo r=heycam |
📌 Commit 1e4dbb7 has been approved by |
☀️ Test successful - checks-travis |
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam, a=RyanVM The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam, a=RyanVM The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677 UltraBlame original commit: 7fbd27be335d24b67954e6b44701f9ff1cd117cd
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677 UltraBlame original commit: 7fbd27be335d24b67954e6b44701f9ff1cd117cd
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677 UltraBlame original commit: 7fbd27be335d24b67954e6b44701f9ff1cd117cd
The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam, a=RyanVM The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam, a=RyanVM The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
…eycam The changes should be trivial. The third_party changes are up for review in servo/rust-cssparser#277 (and of course I'll land with a bump to 0.28 rather than the override after that gets r+'d). The basic idea is that with this we have the actual start offset of the rule, so we wouldn't include html comments or other invalid stuff we discard during sanitization in bug 1680084. But that's a separate change. Differential Revision: https://phabricator.services.mozilla.com/D98677
This is:
More generic, as the state has more information like the source
index.
Slightly cheaper to compute, as the source location requires math to
compute, which the parser state doesn't
I need this to improve CSS sanitization in Gecko.
https://bugzilla.mozilla.org/show_bug.cgi?id=1680084