Bug 612256 - On plugin invalidate only plugin layer (and not thebes layer) should be updated. r=roc a=blocking2.0
authorOleg Romashin <romaxa@gmail.com>
Tue, 23 Nov 2010 01:46:11 +0200
changeset 58012 4dbcce638eef4fecb7c635e12d47a22a9fd2f160
parent 58011 508fe9b3ecf1b2088c7f4a361bba891e233bd5c6
child 58013 ebbcdbb4bef9c1c38ab6db7af1b2ed8715d063e9
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, blocking2
bugs612256
milestone2.0b8pre
Bug 612256 - On plugin invalidate only plugin layer (and not thebes layer) should be updated. r=roc a=blocking2.0
layout/generic/nsObjectFrame.cpp
--- a/layout/generic/nsObjectFrame.cpp
+++ b/layout/generic/nsObjectFrame.cpp
@@ -3136,17 +3136,17 @@ NS_IMETHODIMP nsPluginInstanceOwner::Inv
   }
 #endif
 
   nsPresContext* presContext = mObjectFrame->PresContext();
   nsRect rect(presContext->DevPixelsToAppUnits(invalidRect->left),
               presContext->DevPixelsToAppUnits(invalidRect->top),
               presContext->DevPixelsToAppUnits(invalidRect->right - invalidRect->left),
               presContext->DevPixelsToAppUnits(invalidRect->bottom - invalidRect->top));
-  mObjectFrame->Invalidate(rect + mObjectFrame->GetUsedBorderAndPadding().TopLeft());
+  mObjectFrame->InvalidateLayer(rect + mObjectFrame->GetUsedBorderAndPadding().TopLeft(), nsDisplayItem::TYPE_PLUGIN);
   return NS_OK;
 }
 
 NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRegion(NPRegion invalidRegion)
 {
   return NS_ERROR_NOT_IMPLEMENTED;
 }