Closed
Bug 749118
Opened 13 years ago
Closed 13 years ago
CSS opacity regression
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: noelamac, Assigned: mattwoodrow)
References
(Blocks 1 open bug)
Details
(Keywords: regression, Whiteboard: [qa+])
Attachments
(5 files)
433 bytes,
text/html
|
Details | |
434 bytes,
text/html
|
Details | |
123.98 KB,
image/jpeg
|
Details | |
252 bytes,
image/gif
|
Details | |
1.24 KB,
patch
|
joe
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
There seems to be a regression with CSS opacity in Firefox 12 (or at least it was not present in earlier versions). I am attaching 3 files:
- sample_regression.html (with an opacity level set that exposes the problem)
- sample.html (opacity level set to "1" and working as it should)
- sample.jpg (background image)
- dots.gif (animated gif)
What happens is that when setting the transparency to a layer, the second frame of the animated GIF inside the layer is lost.
![]() |
||
Updated•13 years ago
|
Attachment #618598 -
Attachment mime type: text/plain → text/html
![]() |
||
Updated•13 years ago
|
Attachment #618599 -
Attachment mime type: text/plain → text/html
![]() |
||
Comment 4•13 years ago
|
||
Regression window(m-c)
Cannot reproduce:
http://hg.mozilla.org/mozilla-central/rev/e1ae143cc842
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111026 Firefox/10.0a1 ID:20111026120007
Can reproduce:
http://hg.mozilla.org/mozilla-central/rev/16a8d2ab5240
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111026 Firefox/10.0a1 ID:20111026163203
pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e1ae143cc842&tochange=16a8d2ab5240
Regression window(m-i)
Cannot reproduce:
http://hg.mozilla.org/integration/mozilla-inbound/rev/98013fe19dcb
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111025 Firefox/10.0a1 ID:20111025195747
Can reproduce:
http://hg.mozilla.org/integration/mozilla-inbound/rev/d7f3bfc7cd46
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111025 Firefox/10.0a1 ID:20111025203245
pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=98013fe19dcb&tochange=d7f3bfc7cd46
Last good; 68d6ef3d84a3
First bad; 8b89d7037306
Triggered by;
8b89d7037306 Matt Woodrow — Bug 695275 - Fix conversion of ThebesLayers to ImageLayers. r=roc
Blocks: 695275
Status: UNCONFIRMED → NEW
Component: General → Graphics
Ever confirmed: true
Keywords: regression
OS: Linux → All
Product: Firefox → Core
QA Contact: general → thebes
Version: 12 Branch → 10 Branch
![]() |
||
Updated•13 years ago
|
tracking-firefox14:
--- → ?
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #618856 -
Flags: review?
Assignee | ||
Updated•13 years ago
|
Attachment #618856 -
Flags: review? → review?(joe)
![]() |
||
Comment 6•13 years ago
|
||
This is not a recent regression. Please nominate for Aurora/Beta approval if you'd like to get this in earlier than FF15.
![]() |
||
Comment 7•13 years ago
|
||
Comment on attachment 618856 [details] [diff] [review]
Translate the source correctly
Review of attachment 618856 [details] [diff] [review]:
-----------------------------------------------------------------
::: image/src/RasterImage.cpp
@@ +852,5 @@
> gfxASurface::ImageFormatARGB32);
> gfxContext ctx(imgsurface);
> ctx.SetOperator(gfxContext::OPERATOR_SOURCE);
> + ctx.Rectangle(framerect);
> + ctx.Translate(framerect.TopLeft());
A better fix to this would be ctx.SetPattern(pattern, framerect.TopLeft());
Attachment #618856 -
Flags: review?(joe) → review-
Assignee | ||
Comment 8•13 years ago
|
||
That API doesn't exist :)
We could adjust the pattern matrix instead? But that doesn't sound easier than my fix, and we'd need to account for a possible existing pattern matrix.
![]() |
||
Comment 9•13 years ago
|
||
Comment on attachment 618856 [details] [diff] [review]
Translate the source correctly
Review of attachment 618856 [details] [diff] [review]:
-----------------------------------------------------------------
Oh, I was thinking of SetSource. Sorry!
Attachment #618856 -
Flags: review- → review+
Assignee | ||
Comment 10•13 years ago
|
||
Assignee: nobody → matt.woodrow
Comment 11•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Comment on attachment 618856 [details] [diff] [review]
Translate the source correctly
Review of attachment 618856 [details] [diff] [review]:
-----------------------------------------------------------------
Let's fix this Web-facing regression ASAP
Attachment #618856 -
Flags: approval-mozilla-beta?
Attachment #618856 -
Flags: approval-mozilla-aurora?
![]() |
||
Comment 13•13 years ago
|
||
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #12)
> Let's fix this Web-facing regression ASAP
What's the risk associated with this patch for a FF10 regression?
Assignee | ||
Comment 14•13 years ago
|
||
(In reply to Alex Keybl [:akeybl] from comment #13)
> What's the risk associated with this patch for a FF10 regression?
Should be very low risk, it's just changing the positioning of the image.
Comment 15•13 years ago
|
||
Comment on attachment 618856 [details] [diff] [review]
Translate the source correctly
sounds low risk enough, approving
Attachment #618856 -
Flags: approval-mozilla-beta?
Attachment #618856 -
Flags: approval-mozilla-beta+
Attachment #618856 -
Flags: approval-mozilla-aurora?
Attachment #618856 -
Flags: approval-mozilla-aurora+
I will land this.
![]() |
||
Comment 18•13 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0
Verified in Ubuntu 12.04, Mac OS 10.6 and Windows 7 on Firefox 13 beta 6. Used attachment in comment 0.
![]() |
||
Comment 19•13 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0
Verified in Ubuntu 12.04, Mac OS 10.8 and Windows 7 on Firefox 14 beta 7. Used attachment in comment 0.
You need to log in
before you can comment on or make changes to this bug.
Description
•