Closed Bug 191821 Opened 23 years ago Closed 22 years ago

Merge Chimera plugin changes to trunk

Categories

(Core Graveyard :: Plug-ins, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

Details

Attachments

(3 files, 1 obsolete file)

Bug to track landing of chimera plugin changes.
This patch adds an implementation of nsIPluginWidget on Mac, which consists of GetPluginClipRect() calculating top-level window-relative clipping and offset, and pre/post drawing methods.
This patch fixes the plugin viewer (full-page plugins) to use nsIPluginWidget on mac, thus removing GetWidgetPosClipAndVis().
Attached patch mozilla/layout/html/base patch (obsolete) — Splinter Review
This patch merges nsObjectFrame changes, which are mainly use of nsIPluginWidget, removal of GetWidgetPosClipAndVis, and fixes to register scroll position listeners on all the scrolling views up to the top. Note that diffs are -b (ignore space change); the code does not contain tabs, and lines up correctly.
Attachment #113452 - Flags: superreview?(bryner)
Attachment #113452 - Flags: review?(peterlubczynski)
Attachment #113453 - Flags: superreview?(bryner)
Attachment #113453 - Flags: review?(peterlubczynski)
Attachment #113454 - Flags: superreview?(bryner)
Attachment #113454 - Flags: review?(peterlubczynski)
This fix causes Flash to animate through tabs on disney.com which doesn't happen in today's Mach-O build. Steps to reproduce: 1. Load http://www.disney.com 2. Press Apple+T 3. Notice you can see Flash animation from other tab in current tab
Will look into it.
Status: NEW → ASSIGNED
This patch fixes the issue with Flash drawing through tabs, by removing the #if defined(MOZ_WIDGET_COCOA) near the end of the patch.
Attachment #113454 - Attachment is obsolete: true
Attachment #115057 - Flags: superreview?(bryner)
Attachment #115057 - Flags: review?(peterl)
Attachment #113454 - Flags: superreview?(bryner)
Attachment #113454 - Flags: review?(peterlubczynski)
Comment on attachment 115057 [details] [diff] [review] Revised layout/html/base (nsObjectFrame.cpp) patch >+#ifdef DO_DIRTY_INTERSECT > // convert relative coordinates to absolute > static void ConvertRelativeToWindowAbsolute(nsIFrame* aFrame, nsIPresContext* aPresContext, nsPoint& aRel, nsPoint& aAbs, nsIWidget *&aContainerWidget); >+#endif >+ >+ enum { ePluginPaintIgnore, ePluginPaintEnable, ePluginPaintDisable }; >+ > #endif // XP_MAC When is DO_DIRTY_INTERSECT ever defined? Other than that, sr=bryner.
Attachment #115057 - Flags: superreview?(bryner) → superreview+
Comment on attachment 113453 [details] [diff] [review] mozilla/modules/plugin/base patch >@@ -1513,15 +1487,14 @@ > } > } > > #if defined(MOZ_WIDGET_COCOA) >+ // why just done for cocoa? > if (!mWidgetVisible) { > mPluginWindow->clipRect.right = mPluginWindow->clipRect.left; > mPluginWindow->clipRect.bottom = mPluginWindow->clipRect.top; > } > #endif > return pluginPort; >- } >- return nsnull; > } > > #endif Should this #ifdef be removed like the one in nsObjectFrame?
Attachment #113452 - Flags: superreview?(bryner) → superreview+
> When is DO_DIRTY_INTERSECT ever defined? I don't think it is. Looks like experimental code left around by beard or someone. > Should this #ifdef be removed like the one in nsObjectFrame? Yeah, if the plugin viewer lives long enough to see my patch.
Attachment #113452 - Flags: review?(peterlubczynski) → review+
Comment on attachment 115057 [details] [diff] [review] Revised layout/html/base (nsObjectFrame.cpp) patch r=peterl
Attachment #115057 - Flags: review?(peterl) → review+
Attachment #113453 - Flags: review?(peterlubczynski) → review+
Comment on attachment 113453 [details] [diff] [review] mozilla/modules/plugin/base patch Ok, sr=bryner with that #ifdef removed (and feel free to remove the DIRTY_INTERSECT code if you want).
Attachment #113453 - Flags: superreview?(bryner) → superreview+
Patches checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: