Repository navigation
Support -moz-binding in geckolib - #11287
Conversation
|
Heads up! This PR modifies the following files:
|
|
New code was committed to pull request. |
|
☔ The latest upstream changes (presumably #11277) made this pull request unmergeable. Please resolve the merge conflicts. |
| #[cfg(feature = "gecko")] | ||
| pub fn dummy_extra_data() -> ParserContextExtraData { | ||
| ParserContextExtraData { } | ||
| } |
There was a problem hiding this comment.
Instead of exposing this everywhere, I think we should have a ParserContext::new and ParserContext::new_with_extra_data, where the former delegates to the latter and passes in a sensible default. Then we can make ::default() a static factory method on ParserContextExtraData.
There was a problem hiding this comment.
I cant add a static method to ParserContextExtraData when it's a typedef for () in the non-geckolib config. I could make it an enum with no constructors. (And all the non-geckolib places where I pass in () for the extra_data parameter I'll replace with ParserContextExtraData::default()).
This will be used for passing Gecko-specific information through the CSS parser in stylo.
…8Bytes through ParserContext.
|
New code was committed to pull request. |
1 similar comment
|
New code was committed to pull request. |
|
I was hoping that we could avoid all the DOM changes by the new_with_extra_data thing, but I guess there are other callers. I think now that the ideal refactoring would be to rename ParserContextExtraData to ParserContextOptions, and hoist the error reporter and the base URL into that, along with any additional optional Gecko fields. We can clean that up later though, and I'd rather get this landed. @bors-servo r+ |
|
📌 Commit f2b1ef4 has been approved by |
|
⌛ Testing commit f2b1ef4 with merge 6bd05f8... |
Support -moz-binding in geckolib Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because changes target stylo Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11287) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
⌛ Testing commit f2b1ef4 with merge 2a2b88f... |
Support -moz-binding in geckolib Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because changes target stylo Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11287) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
Thank you for contributing to Servo! Please replace each
[ ]by[X]when the step is complete, and replace__with appropriate data:./mach build -ddoes not report any errors./mach test-tidy --fasterdoes not report any errorsEither:
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
This change is