b=797568 don't try to get non-existant ImageContainer with in-process Mac plugins r=BenWa
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 31 Oct 2012 15:54:05 +1300
changeset 111993 08783347c920394857b746adb502c5391fdfbd48
parent 111992 0b0b4ef87dac047dc65db2804317cc5e9468ca7d
child 111994 caad55e54b0bc1cbb8a095b3bcbd7310b4ae2fef
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersBenWa
bugs797568
milestone19.0a1
b=797568 don't try to get non-existant ImageContainer with in-process Mac plugins r=BenWa
layout/generic/nsObjectFrame.cpp
--- a/layout/generic/nsObjectFrame.cpp
+++ b/layout/generic/nsObjectFrame.cpp
@@ -1541,21 +1541,16 @@ nsObjectFrame::UpdateImageLayer(const gf
 {
   if (!mInstanceOwner) {
     return;
   }
 
 #ifdef XP_MACOSX
   if (!mInstanceOwner->UseAsyncRendering()) {
     mInstanceOwner->DoCocoaEventDrawRect(aRect, nullptr);
-    // This makes sure the image on the container is up to date.
-    // XXX - Eventually we probably just want to make sure DoCocoaEventDrawRect
-    // updates the image container, to make this truly use 'push' semantics
-    // too.
-    mInstanceOwner->GetImageContainer();
   }
 #endif
 }
 
 LayerState
 nsObjectFrame::GetLayerState(nsDisplayListBuilder* aBuilder,
                              LayerManager* aManager)
 {