diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-27 19:47:49 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-27 19:47:49 +0000 |
commit | 47b541d98397df0e1e608fec34ec10e427d6255c (patch) | |
tree | 44580893ef7aede51fdc946719410337561699ea /chrome/browser/resources/print_preview | |
parent | 1f0d6ba7a5244d569a7dc9778d2b80e891dc072b (diff) | |
download | chromium_src-47b541d98397df0e1e608fec34ec10e427d6255c.zip chromium_src-47b541d98397df0e1e608fec34ec10e427d6255c.tar.gz chromium_src-47b541d98397df0e1e608fec34ec10e427d6255c.tar.bz2 |
[webui] get rid of EnablePlatformSpecificCss
touch-optimized is the only attribute still being used. For shared css, I changed the mechanism so that pages will transparently get the correct CSS rather than needing to make a js call. For individual pages (i.e. the options page), I left the js call because a page author who includes special CSS can reasonably be expected to realize this call is necessary.
I deleted some touch CSS that looked stale and/or unused.
BUG=none
TEST=manual
Review URL: http://codereview.chromium.org/9836095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/print_preview')
3 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js index d5d239d..8aab8b3 100644 --- a/chrome/browser/resources/print_preview/print_preview.js +++ b/chrome/browser/resources/print_preview/print_preview.js @@ -143,7 +143,6 @@ var customEvents = { * the printer list. */ function onLoad() { - cr.enablePlatformSpecificCSSRules(); initialPreviewRequestID = randomInteger(MIN_REQUEST_ID, MAX_REQUEST_ID); lastPreviewRequestID = initialPreviewRequestID; diff --git a/chrome/browser/resources/print_preview/print_preview_dummy.html b/chrome/browser/resources/print_preview/print_preview_dummy.html index 40cee7b..52af404 100644 --- a/chrome/browser/resources/print_preview/print_preview_dummy.html +++ b/chrome/browser/resources/print_preview/print_preview_dummy.html @@ -13,7 +13,6 @@ <script src="chrome://resources/js/cr.js"></script> <script src="chrome://resources/js/local_strings.js"></script> -<script src="chrome://print/print_preview_dummy.js"></script> <script src="chrome://print/strings.js"></script> </head> <body i18n-values=".style.fontFamily:fontfamily"> diff --git a/chrome/browser/resources/print_preview/print_preview_dummy.js b/chrome/browser/resources/print_preview/print_preview_dummy.js deleted file mode 100644 index fd282e6..0000000 --- a/chrome/browser/resources/print_preview/print_preview_dummy.js +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -cr.enablePlatformSpecificCSSRules(); |