Bug 106386 - Correct misspellings in source code (old); Part 2; r=timeless
authorMichael Kohler <michaelkohler@live.com>
Mon, 27 Jul 2009 10:47:02 +0200
changeset 30710 b02f3a8ce4cd94cb91eb3ada7ba94174122d648c
parent 30709 786c89deb04253179e06b8656e3876d8608bfb80
child 30711 0322169bc93e8fb92c18c1098397409763c30c78
push idunknown
push userunknown
push dateunknown
reviewerstimeless
bugs106386
milestone1.9.2a1pre
Bug 106386 - Correct misspellings in source code (old); Part 2; r=timeless
layout/base/nsCSSFrameConstructor.cpp
layout/base/nsDisplayList.cpp
layout/base/nsFrameManager.cpp
layout/base/nsPresShell.cpp
layout/base/nsStyleSheetService.h
layout/generic/nsHTMLReflowState.cpp
layout/generic/nsSelection.cpp
layout/svg/base/src/nsSVGForeignObjectFrame.cpp
layout/tables/nsTableFrame.h
layout/xul/base/test/test_bug393970.xul
layout/xul/base/test/test_bug477754.xul
layout/xul/base/test/test_resizer.xul
netwerk/test/unit/test_bug337744.js
other-licenses/ia2/AccessibleApplication.idl
other-licenses/ia2/AccessibleRelation.idl
rdf/base/src/nsInMemoryDataSource.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -1264,17 +1264,17 @@ nsFrameConstructorState::ProcessFrameIns
   }
   
   nsIFrame* containingBlock = aFrameItems.containingBlock;
 
   NS_ASSERTION(containingBlock,
                "Child list without containing block?");
   
   // Insert the frames hanging out in aItems.  We can use SetInitialChildList()
-  // if the containing block hasn't been reflown yet (so NS_FRAME_FIRST_REFLOW
+  // if the containing block hasn't been reflowed yet (so NS_FRAME_FIRST_REFLOW
   // is set) and doesn't have any frames in the aChildListName child list yet.
   nsIFrame* firstChild = containingBlock->GetFirstChild(aChildListName);
   nsresult rv = NS_OK;
   if (!firstChild && (containingBlock->GetStateBits() & NS_FRAME_FIRST_REFLOW)) {
     rv = containingBlock->SetInitialChildList(aChildListName, firstNewFrame);
   } else {
     // Note that whether the frame construction context is doing an append or
     // not is not helpful here, since it could be appending to some frame in
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -1057,17 +1057,17 @@ nsDisplayWrapList* nsDisplayClip::WrapWi
 
 ///////////////////////////////////////////////////
 // nsDisplayTransform Implementation
 //
 
 // Write #define UNIFIED_CONTINUATIONS here to have the transform property try
 // to transform content with continuations as one unified block instead of
 // several smaller ones.  This is currently disabled because it doesn't work
-// correctly, since when the frames are initially being reflown, their
+// correctly, since when the frames are initially being reflowed, their
 // continuations all compute their bounding rects independently of each other
 // and consequently get the wrong value.  Write #define DEBUG_HIT here to have
 // the nsDisplayTransform class dump out a bunch of information about hit
 // detection.
 #undef  UNIFIED_CONTINUATIONS
 #undef  DEBUG_HIT
 
 /* Returns the bounds of a frame as defined for transforms.  If
--- a/layout/base/nsFrameManager.cpp
+++ b/layout/base/nsFrameManager.cpp
@@ -1393,17 +1393,17 @@ nsFrameManager::ReResolveStyleContext(ns
               NS_ASSERTION(outOfFlowFrame, "no out-of-flow frame");
               NS_ASSERTION(outOfFlowFrame != resolvedChild,
                            "out-of-flow frame not a true descendant");
 
               // Note that the out-of-flow may not be a geometric descendant of
               // the frame where we started the reresolve.  Therefore, even if
               // aMinChange already includes nsChangeHint_ReflowFrame we don't
               // want to pass that on to the out-of-flow reresolve, since that
-              // can lead to the out-of-flow not getting reflown when it should
+              // can lead to the out-of-flow not getting reflowed when it should
               // be (eg a reresolve starting at <body> that involves reflowing
               // the <body> would miss reflowing fixed-pos nodes that also need
               // reflow).  In the cases when the out-of-flow _is_ a geometric
               // descendant of a frame we already have a reflow hint for,
               // reflow coalescing should keep us from doing the work twice.
 
               // |nsFrame::GetParentStyleContextFrame| checks being out
               // of flow so that this works correctly.
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -4592,17 +4592,17 @@ PresShell::CaptureHistoryState(nsILayout
   *aState = historyState;
   NS_IF_ADDREF(*aState);
   
   // Capture frame state for the entire frame hierarchy
   nsIFrame* rootFrame = FrameManager()->GetRootFrame();
   if (!rootFrame) return NS_OK;
   // Capture frame state for the root scroll frame
   // Don't capture state when first creating doc element hierarchy
-  // As the scroll position is 0 and this will cause us to loose
+  // As the scroll position is 0 and this will cause us to lose
   // our previously saved place!
   if (aLeavingPage) {
     nsIFrame* scrollFrame = GetRootScrollFrame();
     if (scrollFrame) {
       FrameManager()->CaptureFrameStateFor(scrollFrame, historyState,
                                            nsIStatefulFrame::eDocumentScrollState);
     }
   }
--- a/layout/base/nsStyleSheetService.h
+++ b/layout/base/nsStyleSheetService.h
@@ -75,17 +75,17 @@ class nsStyleSheetService : public nsISt
   NS_HIDDEN_(void) RegisterFromEnumerator(nsICategoryManager  *aManager,
                                           const char          *aCategory,
                                           nsISimpleEnumerator *aEnumerator,
                                           PRUint32             aSheetType);
 
   NS_HIDDEN_(PRInt32) FindSheetByURI(const nsCOMArray<nsIStyleSheet> &sheets,
                                      nsIURI *sheetURI);
 
-  // Like LoadAndRegisterSheet, but doesn't notify.  If succesful, the
+  // Like LoadAndRegisterSheet, but doesn't notify.  If successful, the
   // new sheet will be the last sheet in mSheets[aSheetType].
   NS_HIDDEN_(nsresult) LoadAndRegisterSheetInternal(nsIURI *aSheetURI,
                                                     PRUint32 aSheetType);
   
   nsCOMArray<nsIStyleSheet> mSheets[2];
 };
 
 #endif
--- a/layout/generic/nsHTMLReflowState.cpp
+++ b/layout/generic/nsHTMLReflowState.cpp
@@ -730,17 +730,17 @@ nsHTMLReflowState::GetHypotheticalBoxCon
   } while (!(aFrame->IsContainingBlock() ||
              (aFrame->IsFrameOfType(nsIFrame::eBlockFrame) &&
               IsAnonBlockPseudo(aFrame->GetStyleContext()->GetPseudoType()))));
 
   NS_ASSERTION(aFrame != frame, "How did that happen?");
 
   /* Now aFrame is the containing block we want */
 
-  /* Check whether the containing block is currently being reflown.
+  /* Check whether the containing block is currently being reflowed.
      If so, use the info from the reflow state. */
   const nsHTMLReflowState* state;
   if (aFrame->GetStateBits() & NS_FRAME_IN_REFLOW) {
     for (state = parentReflowState; state && state->frame != aFrame;
          state = state->parentReflowState) {
       /* do nothing */
     }
   } else {
@@ -973,17 +973,17 @@ nsHTMLReflowState::CalculateHypothetical
     }
   }
   
   // Get the 'direction' of the block
   const nsStyleVisibility* blockVis = aContainingBlock->GetStyleVisibility();
 
   // Get the placeholder x-offset and y-offset in the coordinate
   // space of the block frame that contains it
-  // XXXbz the placeholder is not fully reflown yet if our containing block is
+  // XXXbz the placeholder is not fully reflowed yet if our containing block is
   // relatively positioned...
   nsPoint placeholderOffset = aPlaceholderFrame->GetOffsetTo(aContainingBlock);
 
   // First, determine the hypothetical box's mTop
   nsBlockFrame* blockFrame = nsLayoutUtils::GetAsBlock(aContainingBlock);
   if (blockFrame) {
     PRBool isValid;
     nsBlockInFlowLineIterator iter(blockFrame, aPlaceholderFrame, &isValid);
@@ -997,17 +997,17 @@ nsHTMLReflowState::CalculateHypothetical
       // Use the top of the inline box which the placeholder lives in as the
       // hypothetical box's top.
       aHypotheticalBox.mTop = lineBox->mBounds.y;
     } else {
       // The element would have been block-level which means it would be below
       // the line containing the placeholder frame, unless all the frames
       // before it are empty.  In that case, it would have been just before
       // this line.      
-      // XXXbz the line box is not fully reflown yet if our containing block is
+      // XXXbz the line box is not fully reflowed yet if our containing block is
       // relatively positioned...
       if (lineBox != iter.End()) {
         nsIFrame * firstFrame = lineBox->mFirstChild;
         PRBool found = PR_FALSE;
         PRBool allEmpty = PR_TRUE;
         while (firstFrame) { // See bug 223064
           allEmpty = AreAllEarlierInFlowFramesEmpty(firstFrame,
             aPlaceholderFrame, &found);
--- a/layout/generic/nsSelection.cpp
+++ b/layout/generic/nsSelection.cpp
@@ -3168,17 +3168,17 @@ nsTypedSelection::addTableCellRange(nsIR
   if (tableMode != nsISelectionPrivate::TABLESELECTION_CELL)
   {
     mFrameSelection->mSelectingTableCellMode = tableMode;
     // Don't fail if range isn't a selected cell, aDidAddRange tells caller if we didn't proceed
     return NS_OK;
   }
   
   // Set frame selection mode only if not already set to a table mode
-  //  so we don't loose the select row and column flags (not detected by getTableCellLocation)
+  //  so we don't lose the select row and column flags (not detected by getTableCellLocation)
   if (mFrameSelection->mSelectingTableCellMode == TABLESELECTION_NONE)
     mFrameSelection->mSelectingTableCellMode = tableMode;
 
   *aDidAddRange = PR_TRUE;
   return AddItem(aRange, aOutIndex);
 }
 
 //TODO: Figure out TABLESELECTION_COLUMN and TABLESELECTION_ALLCELLS
--- a/layout/svg/base/src/nsSVGForeignObjectFrame.cpp
+++ b/layout/svg/base/src/nsSVGForeignObjectFrame.cpp
@@ -141,17 +141,17 @@ nsSVGForeignObjectFrame::Reflow(nsPresCo
 {
   // InitialUpdate and AttributeChanged make sure mRect is up to date before
   // we're called (UpdateCoveredRegion sets mRect).
 
   NS_ASSERTION(!aReflowState.parentReflowState,
                "should only get reflow from being reflow root");
   NS_ASSERTION(aReflowState.ComputedWidth() == GetSize().width &&
                aReflowState.ComputedHeight() == GetSize().height,
-               "reflow roots should be reflown at existing size and "
+               "reflow roots should be reflowed at existing size and "
                "svg.css should ensure we have no padding/border/margin");
 
   DoReflow();
 
   aDesiredSize.width = aReflowState.ComputedWidth();
   aDesiredSize.height = aReflowState.ComputedHeight();
   aDesiredSize.mOverflowArea =
     nsRect(0, 0, aReflowState.ComputedWidth(), aReflowState.ComputedHeight());
--- a/layout/tables/nsTableFrame.h
+++ b/layout/tables/nsTableFrame.h
@@ -529,17 +529,17 @@ public:
   void SetHasPctCol(PRBool aValue);
 
   PRBool HasCellSpanningPctCol() const;
   void SetHasCellSpanningPctCol(PRBool aValue);
 
   /**
    * To be called on a frame by its parent after setting its size/position and
    * calling DidReflow (possibly via FinishReflowChild()).  This can also be
-   * used for child frames which are not being reflown but did have their size
+   * used for child frames which are not being reflowed but did have their size
    * or position changed.
    *
    * @param aFrame The frame to invalidate
    * @param aOrigRect The original rect of aFrame (before the change).
    * @param aOrigOverflowRect The original overflow rect of aFrame.
    * @param aIsFirstReflow True if the size/position change is due to the
    *                       first reflow of aFrame.
    */
--- a/layout/xul/base/test/test_bug393970.xul
+++ b/layout/xul/base/test/test_bug393970.xul
@@ -5,17 +5,17 @@
 <!--
 https://bugzilla.mozilla.org/show_bug.cgi?id=393970
 -->
 <window title="Mozilla Bug 393970"
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
   <script type="application/javascript" src="/MochiKit/packed.js" />
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
 
-  <!-- test resuls are displayed in the html:body -->
+  <!-- test results are displayed in the html:body -->
   <body xmlns="http://www.w3.org/1999/xhtml">
   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=393970"
      target="_blank">Mozilla Bug 393970</a>
   </body>
 
   <hbox flex="1" pack="start" style="visibility: hidden;">
     <grid min-width="1000" width="1000">
       <columns>
--- a/layout/xul/base/test/test_bug477754.xul
+++ b/layout/xul/base/test/test_bug477754.xul
@@ -4,17 +4,17 @@
 <!--
 https://bugzilla.mozilla.org/show_bug.cgi?id=477754
 -->
 <window title="Mozilla Bug 477754"
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
   <script type="application/javascript" src="/MochiKit/packed.js" />
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
 
-  <!-- test resuls are displayed in the html:body -->
+  <!-- test results are displayed in the html:body -->
   <body xmlns="http://www.w3.org/1999/xhtml">
   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=477754"
      target="_blank">Mozilla Bug 477754</a>
   </body>
 
   <hbox pack="center">
     <label id="anchor" value="Anchor"/>
   </hbox>
--- a/layout/xul/base/test/test_resizer.xul
+++ b/layout/xul/base/test/test_resizer.xul
@@ -5,17 +5,17 @@
 <!--
 XUL <resizer> tests
 -->
 <window title="XUL resizer tests"
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
   <script type="application/javascript" src="/MochiKit/packed.js" />
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
 
-  <!-- test resuls are displayed in the html:body -->
+  <!-- test results are displayed in the html:body -->
   <body xmlns="http://www.w3.org/1999/xhtml">
   </body>
 
   <!-- test code goes here -->
   <script type="application/javascript"><![CDATA[
     // GTK has a native drag resizing implementation so we can't test that here
     if (navigator.platform.indexOf("Mac") == 0 || navigator.platform.indexOf("Win") == 0) {
       SimpleTest.waitForExplicitFinish();
--- a/netwerk/test/unit/test_bug337744.js
+++ b/netwerk/test/unit/test_bug337744.js
@@ -23,16 +23,16 @@ function check_for_exception(spec)
 
   try {
     var channel = ios.newChannel(spec, null, null);
   }
   catch (e) {
     return;
   }
 
-  do_throw("Succesfully opened invalid URI: '" + spec + "'");
+  do_throw("Successfully opened invalid URI: '" + spec + "'");
 }
 
 function run_test() {
   for each (spec in specs) {
     check_for_exception(spec);
   }
 }
--- a/other-licenses/ia2/AccessibleApplication.idl
+++ b/other-licenses/ia2/AccessibleApplication.idl
@@ -27,17 +27,17 @@ import "objidl.idl";
 import "oaidl.idl";
 import "oleacc.idl";
 
 /** @brief This interface gives access to the application's name and version information.
         
  This interface provides the AT with the information it needs to differentiate 
  this application from other applications, from other versions of this 
  application, or from other versions of this application running on different 
- versions of an accessibility bridge or accessbility toolkit.
+ versions of an accessibility bridge or accessibility toolkit.
 */
 [object, uuid(D49DED83-5B25-43F4-9B95-93B44595979E)]
 interface IAccessibleApplication : IUnknown
 {
   
   /** @brief Returns the application name.
    @param [out] name
   */
--- a/other-licenses/ia2/AccessibleRelation.idl
+++ b/other-licenses/ia2/AccessibleRelation.idl
@@ -75,17 +75,17 @@ const WCHAR *const IA2_RELATION_MEMBER_O
 
 /** This object is a child of a target object. */
 const WCHAR *const IA2_RELATION_NODE_CHILD_OF = L"nodeChildOf";
 
 /** This object is a parent window of the target object. */
 const WCHAR *const IA2_RELATION_PARENT_WINDOW_OF = L"parentWindowOf";
 
 /** This object is a transient component related to the target object. 
- When this object is activated the target object doesn't loose focus.
+ When this object is activated the target object doesn't lose focus.
 */
 const WCHAR *const IA2_RELATION_POPUP_FOR = L"popupFor";
 
 /** This object is a sub window of a target object. */
 const WCHAR *const IA2_RELATION_SUBWINDOW_OF = L"subwindowOf";
 
 ///@}
 
--- a/rdf/base/src/nsInMemoryDataSource.cpp
+++ b/rdf/base/src/nsInMemoryDataSource.cpp
@@ -631,17 +631,17 @@ InMemoryAssertionEnumeratorImpl::GetNext
 ////////////////////////////////////////////////////////////////////////
 //
 
 /**
  * This class is a little bit bizarre in that it implements both the
  * <tt>nsIRDFArcsOutCursor</tt> and <tt>nsIRDFArcsInCursor</tt> interfaces.
  * Because the structure of the in-memory graph is pretty flexible, it's
  * fairly easy to parameterize this class. The only funky thing to watch
- * out for is the mutliple inheiritance clashes.
+ * out for is the mutliple inheritance clashes.
  */
 
 class InMemoryArcsEnumeratorImpl : public nsISimpleEnumerator
 {
 private:
     // Hide so that only Create() and Destroy() can be used to
     // allocate and deallocate from the heap
     static void* operator new(size_t) CPP_THROW_NEW { return 0; }