Closed
Bug 631388
Opened 13 years ago
Closed 13 years ago
Investigate not centering plugin images in their frame if the frame/image sizes mismatch
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(blocking2.0 final+)
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: cjones, Assigned: roc)
References
()
Details
(Whiteboard: [has patch][hardblocker])
Attachments
(4 files, 1 obsolete file)
7.92 KB,
patch
|
cjones
:
review+
tnikkel
:
feedback+
|
Details | Diff | Splinter Review |
405.00 KB,
image/jpeg
|
Details | |
11.79 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
9.38 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
Spun off from bug 626602. It's not clear how this helps anything, and Rob alluded to it being a problem, but I didn't get the details there. If the goal is to minimize the visual difference between sizes-match rendering and a subsequent sizes-mismatch rendering, then there are a few things to consider first. If we assume that the common case is the <object> top-left staying fixed and width/height changing, then (obviously) the minimum visual difference before/after resize is to leave the image at <0,0>. I don't know if that's a good assumption. That's the simplest implementation.
Assignee | ||
Comment 1•13 years ago
|
||
For example, go to http://superpokepets.com/spp, create an account and log in. There's Flash object at the top of the page with a kind of menubar. Hover over the menubar and the Flash object will jump around because we've changed the size of the object and the async rendering hasn't caught up.
Reporter | ||
Comment 2•13 years ago
|
||
I housed my monkey in the sky palace. Yeah, that's pretty jarring.
Reporter | ||
Comment 3•13 years ago
|
||
Seems to fix superpokepets. I don't see any risk in taking this patch.
Assignee: nobody → jones.chris.g
Attachment #509644 -
Flags: review?(roc)
Attachment #509644 -
Flags: approval2.0?
Assignee | ||
Updated•13 years ago
|
Attachment #509644 -
Flags: review?(roc)
Attachment #509644 -
Flags: review+
Attachment #509644 -
Flags: approval2.0?
Attachment #509644 -
Flags: approval2.0+
Assignee | ||
Updated•13 years ago
|
Whiteboard: [needs landing]
Reporter | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/c3a4a1970f6c
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Whiteboard: [needs landing]
Version: unspecified → Trunk
Comment 5•13 years ago
|
||
I backed out this because unfortunately it was conflicting with the backout of bug 626602 and I didn't want to merge a code that I don't know.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [needs landing]
Assignee | ||
Comment 6•13 years ago
|
||
So I think here we should get rid of all the centering logic, and furthermore we should avoid changing nsDisplayPlugin::GetBounds in nsObjectFrame::BuildLayer, by a) never changing the result of GetBounds based on the imagecontainer, and b) modifying nsDisplayPlugin::GetOpaqueRegion to return false if the mImageSurface dimensions don't match the display item bounds.
Assignee | ||
Comment 7•13 years ago
|
||
More comprehensive fix. Needed for patch in bug 630835 to pass tests reliably. I'm happy to land this after bug 626602; there will be some merging, but it's probably easier to merge this on top of 626602.
Assignee: jones.chris.g → roc
Attachment #509644 -
Attachment is obsolete: true
Attachment #512760 -
Flags: review?(jones.chris.g)
Comment 8•13 years ago
|
||
Comment on attachment 512760 [details] [diff] [review] fix v2 cjones asked if I wanted to look this over. Seems fine to me.
Attachment #512760 -
Flags: feedback+
Reporter | ||
Comment 9•13 years ago
|
||
Comment on attachment 512760 [details] [diff] [review] fix v2 > I'm happy to land this after bug 626602; there will be some merging, but it's > probably easier to merge this on top of 626602. Bless you, kind sir.
Attachment #512760 -
Flags: review?(jones.chris.g) → review+
Comment 10•13 years ago
|
||
We should get this landed for beta feedback on the whole set.
blocking2.0: --- → betaN+
Whiteboard: [needs landing] → [needs landing][hardblocker]
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
Confirm this bug.
Comment 13•13 years ago
|
||
I tried to land this, but the patch didn't apply cleanly, and it was not easy to merge at all.
Whiteboard: [needs landing][hardblocker] → [needs new patch][hardblocker]
Assignee | ||
Comment 14•13 years ago
|
||
Sorry yes, this needs more work post-626602. However, I don't think this needs beta coverage.
blocking2.0: betaN+ → final+
Assignee | ||
Comment 15•13 years ago
|
||
GetImageSize will be useful in bug 634844 as well.
Attachment #513688 -
Flags: review?(jones.chris.g)
Assignee | ||
Comment 16•13 years ago
|
||
nsDisplayPlugin::GetOpaqueRegion is necessarily dependent on async rendering state, but this patch makes it depend on nsIPluginInstance::GetImageSize, which shouldn't change during painting.
Attachment #513689 -
Flags: review?(jones.chris.g)
Updated•13 years ago
|
Whiteboard: [needs new patch][hardblocker] → [has patch][hardblocker]
Updated•13 years ago
|
Whiteboard: [has patch][hardblocker] → [has patch][hardblocker][needs review cjones]
Assignee | ||
Comment 17•13 years ago
|
||
Passed reftests on try.
Reporter | ||
Updated•13 years ago
|
Attachment #513688 -
Flags: review?(jones.chris.g) → review+
Reporter | ||
Updated•13 years ago
|
Attachment #513689 -
Flags: review?(jones.chris.g) → review+
Whiteboard: [has patch][hardblocker][needs review cjones] → [has patch][hardblocker][needs landing]
Assignee | ||
Comment 18•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/8b22f4933c31 http://hg.mozilla.org/mozilla-central/rev/9ad79fc34fee
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Whiteboard: [has patch][hardblocker][needs landing] → [has patch][hardblocker]
Comment 19•13 years ago
|
||
Verified. Mozilla/5.0 (Windows NT 6.1; rv:2.0b13pre) Gecko/20110223 Firefox/4.0b13pre ID:20110223030416 Thanks ! Very good job!
Comment 20•13 years ago
|
||
This has been reported to have fixed the Nike sites on bug 634380, now marked as resolved thanks to Keldorn on mozillazine http://forums.mozillazine.org/viewtopic.php?f=23&t=2116361&p=10474673#p10474673
Comment 21•13 years ago
|
||
(In reply to comment #19) > Verified. Mozilla/5.0 (Windows NT 6.1; rv:2.0b13pre) Gecko/20110223 > Firefox/4.0b13pre ID:20110223030416 > Thanks ! Very good job! Confirming as verified
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•