diff --git a/mozilla/cmd/macfe/applevnt/mplugin.cp b/mozilla/cmd/macfe/applevnt/mplugin.cp index 17d994c5998..e1ed68797c4 100644 --- a/mozilla/cmd/macfe/applevnt/mplugin.cp +++ b/mozilla/cmd/macfe/applevnt/mplugin.cp @@ -59,6 +59,7 @@ #include #include "LMenuSharing.h" +#include "CBrowserWindow.h" // On a powerPC, plugins depend on being able to find qd in our symbol table #ifdef powerc @@ -1738,6 +1739,17 @@ Boolean CPluginView::HandleKeyPress(const EventRecord& inKeyEvent) return false; } +Boolean CPluginView::FocusDraw(LPane *inSubPane) +{ + Boolean revealed = LView::FocusDraw(inSubPane); + + // + // Make sure that any exposed popdown view is clipped out before drawing occurs. + // + CBrowserWindow::ClipOutPopdown(this); + + return revealed; +} void CPluginView::DrawSelf() { diff --git a/mozilla/cmd/macfe/applevnt/mplugin.h b/mozilla/cmd/macfe/applevnt/mplugin.h index e2482231400..7325d849165 100644 --- a/mozilla/cmd/macfe/applevnt/mplugin.h +++ b/mozilla/cmd/macfe/applevnt/mplugin.h @@ -76,6 +76,7 @@ public: virtual void EventMouseUp(const EventRecord &inMacEvent); virtual Boolean ObeyCommand(CommandT inCommand, void *ioParam); virtual Boolean HandleKeyPress(const EventRecord& inKeyEvent); + virtual Boolean FocusDraw(LPane *inSubPane = nil); virtual void DrawSelf(); virtual void SpendTime(const EventRecord& inMacEvent); virtual void ActivateSelf();