Files
brave-core/patches/tools-polymer-css_to_wrapper.py.patch
T
cdesouza-chromium 7e05546e97 Use --default-prefix with update_patches (#28610)
This change adds `--default-prefix` to make sure we get the same patch
format in any environment.
2025-04-14 09:28:07 +01:00

21 lines
918 B
Diff

diff --git a/tools/polymer/css_to_wrapper.py b/tools/polymer/css_to_wrapper.py
index d76a3aa579e895ec9f237c76e022a3ebaafc02a3..900ec9159da17da16fd546116a96631333583bff 100644
--- a/tools/polymer/css_to_wrapper.py
+++ b/tools/polymer/css_to_wrapper.py
@@ -275,7 +275,7 @@ def main(argv):
content = ''
- lit_in_file = in_file.replace('.css', _LIT_SUFFIX)
+ lit_in_file = in_file.replace('.css', _LIT_SUFFIX).replace('-chromium_lit.css', '_lit-chromium.css')
if metadata['type'] == 'style' and lit_in_file in args.in_files:
# When a Polymer file has an equivalent "_lit.css" file, use the latter to
# extract the CSS content from, to facilitate migration without having to
@@ -349,5 +349,6 @@ def main(argv):
return
+from brave_chromium_utils import inline_chromium_src_override; inline_chromium_src_override(globals(), locals())
if __name__ == '__main__':
main(sys.argv[1:])