DCHECK(RuntimeEnabledFeatures::DeclarativeCSSModulesEnabled());
CHECK?
void StyleElement::CreateModule(Element& element, const String& text) {
I find it a bit strange to have a "Create"-function that doesn't return a value.
Is there a more descriptive name that takes the Modulator mutations into account?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
DCHECK(RuntimeEnabledFeatures::DeclarativeCSSModulesEnabled());
Kurt Catti-SchmidtCHECK?
Done
void StyleElement::CreateModule(Element& element, const String& text) {
I find it a bit strange to have a "Create"-function that doesn't return a value.
Is there a more descriptive name that takes the Modulator mutations into account?
Good point. Renamed to `AddImportMapEntry`.
DCHECK(import_map);
Kurt Catti-SchmidtWhy not CHECK?
Just more used to `DCHECK`. I converted a few more here.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
void AddImportMapEntry(Element&, const String&);
Nit: 'source_text' or just 'text' since the type 'String' doesn't clearly state what this parameter is.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
Nit: 'source_text' or just 'text' since the type 'String' doesn't clearly state what this parameter is.
Went with `text` for consistency with other methods in this file.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/55456.
When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.
WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |