summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 19:58:43 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 19:58:43 +0000
commit1d99bfac92febc985149d026563e53a0888f76af (patch)
tree21bd18ad4e450bcf891b974f00e5a5fbf7d1ded4 /chrome/browser/browser.cc
parentc93efc7c5e34959ff4f828f242381b0f6eacf6cf (diff)
downloadchromium_src-1d99bfac92febc985149d026563e53a0888f76af.zip
chromium_src-1d99bfac92febc985149d026563e53a0888f76af.tar.gz
chromium_src-1d99bfac92febc985149d026563e53a0888f76af.tar.bz2
Fix transparent windowless plugin background painting. This would manifest
itself as incorrect ClearType edges. The problem was that we were taking into account the translation from the page coordinate system when blitting the background, but this had already been accounted for in the transformation matrix, resulting in duplicate transformations. The fix simplifies the code by not tranlating into the page coordinate system until later, staying in the plugin coordinate system which is more convenient. This means that the background (which is the same size as the buffer) can just be painted at (0,0) with no fuss and no muss. We don't even need to worry about how much we paint since the clip was already installed. This also corrects some indenting in browser.cc that I noticed. TEST="Attach a file" text in Gmail compose looks weird (sometimes requires selecting it to make this happen). BUG=26080 Review URL: http://codereview.chromium.org/343040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index d13aabc..74e3987 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -2426,9 +2426,9 @@ void Browser::UpdateCommandsForTabState() {
// Current navigation entry, may be NULL.
NavigationEntry* active_entry = current_tab->controller().GetActiveEntry();
- bool is_source_viewable =
- net::IsSupportedNonImageMimeType(
- current_tab->contents_mime_type().c_str());
+ bool is_source_viewable =
+ net::IsSupportedNonImageMimeType(
+ current_tab->contents_mime_type().c_str());
// Page-related commands
window_->SetStarredState(current_tab->is_starred());