Bug 637278: Fix indentation. r=roc a=b
authorChris Jones <jones.chris.g@gmail.com>
Tue, 01 Mar 2011 12:27:35 -0600
changeset 63211 52ffeed74f9649899984d5ff11daa1c4f1508a10
parent 63210 88074e56362792e1fc976da1e212b66db7ddb93b
child 63212 7ed9b3bc059e3d5746ec33560c5da24c95bd556b
push id19079
push usercjones@mozilla.com
push dateTue, 01 Mar 2011 18:28:04 +0000
treeherdermozilla-central@52ffeed74f96 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, b
bugs637278
milestone2.0b13pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 637278: Fix indentation. r=roc a=b
layout/generic/nsObjectFrame.cpp
--- a/layout/generic/nsObjectFrame.cpp
+++ b/layout/generic/nsObjectFrame.cpp
@@ -3505,29 +3505,29 @@ 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));
- if (container) {
-   gfxIntSize newSize = container->GetCurrentSize();
-   if (newSize != oldSize) {
-     // The image size has changed - invalidate the old area too, bug 635405.
-     nsRect oldRect = nsRect(0, 0,
-                             presContext->DevPixelsToAppUnits(oldSize.width),
-                             presContext->DevPixelsToAppUnits(oldSize.height));
-     rect.UnionRect(rect, oldRect);
-   }
- }
- rect.MoveBy(mObjectFrame->GetUsedBorderAndPadding().TopLeft());
- mObjectFrame->InvalidateLayer(rect, nsDisplayItem::TYPE_PLUGIN);
- return NS_OK;
+  if (container) {
+    gfxIntSize newSize = container->GetCurrentSize();
+    if (newSize != oldSize) {
+      // The image size has changed - invalidate the old area too, bug 635405.
+      nsRect oldRect = nsRect(0, 0,
+                              presContext->DevPixelsToAppUnits(oldSize.width),
+                              presContext->DevPixelsToAppUnits(oldSize.height));
+      rect.UnionRect(rect, oldRect);
+    }
+  }
+  rect.MoveBy(mObjectFrame->GetUsedBorderAndPadding().TopLeft());
+  mObjectFrame->InvalidateLayer(rect, nsDisplayItem::TYPE_PLUGIN);
+  return NS_OK;
 }
 
 NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRegion(NPRegion invalidRegion)
 {
   return NS_ERROR_NOT_IMPLEMENTED;
 }
 
 NS_IMETHODIMP nsPluginInstanceOwner::ForceRedraw()