summaryrefslogtreecommitdiffstats
path: root/tools/grit
diff options
context:
space:
mode:
authormihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-30 00:58:23 +0000
committermihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-30 00:58:23 +0000
commitf1864396f993f7205a3c9091b836d155002bdde3 (patch)
treeca271f6033f6e2dc9b17fc87efd754b938466ff2 /tools/grit
parentb9c806bfefaab06556664ac78478a56af917fe0e (diff)
downloadchromium_src-f1864396f993f7205a3c9091b836d155002bdde3.zip
chromium_src-f1864396f993f7205a3c9091b836d155002bdde3.tar.gz
chromium_src-f1864396f993f7205a3c9091b836d155002bdde3.tar.bz2
Switch web store promo button image to have an alpha channel,
so that it blends in with non-white NTP backgrounds. Since the current markup doesn't handle alpha channels well (the different sections overlap), redo it to use border-image. Also makes the button not wrap for longer label names. BUG=80233,80810 TEST=tried with non-default themes R=arv@chromium.org Review URL: http://codereview.chromium.org/6905089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/grit')
-rwxr-xr-xtools/grit/grit/format/html_inline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/grit/grit/format/html_inline.py b/tools/grit/grit/format/html_inline.py
index 0ba3254..496a7e3 100755
--- a/tools/grit/grit/format/html_inline.py
+++ b/tools/grit/grit/format/html_inline.py
@@ -208,8 +208,8 @@ def DoInline(input_filename, grd_node, allow_external_script=False):
def InlineCSSImages(text, filepath=input_filepath):
"""Helper function that inlines external images in CSS backgrounds."""
- return re.sub('(?:content|background(?:-image)?):[ ]*url\((?:\'|\")' +
- '(?P<filename>[^"\'\)\(]*)(?:\'|\")',
+ return re.sub('(?:content|background(?:-image)|border-image?):[ ]*' +
+ 'url\((?:\'|\")(?P<filename>[^"\'\)\(]*)(?:\'|\")',
lambda m: SrcReplace(m, filepath),
text)