forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix chrome automation snapshotting for pages with plugins and transpa…
…rent overlays. Instead of using FORMAT_SkBitmap, which assumes an alpha premultiplied color, just use FORMAT_BGRA. BUG=96317 TEST=none Review URL: http://codereview.chromium.org/7870010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101399 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
kkania@chromium.org
committed
Sep 15, 2011
1 parent
9008ea7
commit db83b4d
Showing
3 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<html> | ||
<style> | ||
.translucent_div { | ||
position:relative; | ||
top:-100px; | ||
left:50px; | ||
opacity:0.5; | ||
width:100px; | ||
height:100px; | ||
background-color:black; | ||
} | ||
* { | ||
margin:0px; | ||
padding:0px; | ||
} | ||
</style> | ||
<!-- Make the body 2000x2000 so that regardless of the window size, the | ||
document should be the same size--> | ||
<body style='background-color:red; width:2000px; height:2000px'> | ||
<embed src="does_not_exist" width="100" height="100" wmode="opaque" | ||
type="application/x-shockwave-flash" allowscriptaccess="never"> | ||
</embed> | ||
<div class='translucent_div'></div> | ||
</body> | ||
</html> |