DescriptionHigh DPI support for Themes: change chrome_html.py
Modified processing of Theme URLs. We will now insert the scale factor text
before the first ? instead of just appending it. This is necessary for parsing
to work properly (see ParsePathAndScale in src/ui/webui/web_ui_util.cc).
See also recent CL which modified related *.css and *.js files:
https://codereview.chromium.org/16610002/
Example:
Old: url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION?$1@2x)
New: url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION?@2x$1)
BUG=248189, 133934
R=flackr@chromium.org
TEST=manual
src/tools/grit/grit.py unit
Load a theme that has 1x and 2x images for IDR_THEME_NTP_ATTRIBUTION
and IDR_THEME_NTP_BACKGROUND.
Patch Set 1 #
Total comments: 2
Patch Set 2 : using match groups #
Total comments: 4
Patch Set 3 : unittest #
Messages
Total messages: 7 (0 generated)
|