1. 05 Dec, 2019 1 commit
  2. 16 May, 2019 1 commit
  3. 10 Dec, 2018 1 commit
  4. 30 Nov, 2018 1 commit
  5. 01 Jun, 2018 1 commit
  6. 10 Apr, 2018 2 commits
  7. 27 Oct, 2017 1 commit
  8. 25 Mar, 2017 1 commit
    • Jan Henning's avatar
      Bug 1265818 - Part 2 - Add scriptable methods for getting and setting PresStates from JS. r=jst · 0e575681
      Jan Henning authored
      This will allow the session store to store and restore scroll positions (and pinch zoom on Android) for past session history entries as well, whereas today only the scroll position of the current page is saved.
      
      As a LayoutHistoryState saves its PresStates in a hash table that doesn't allow direct access to its contents if you don't already know the entry's key, we provide a function to iterate over all stored PresStates and retrieve their keys, which can then be used to get access to each individual PresState in turn. Since nsPresState is little more than a fancy struct and we don't want to have to turn it into a full-blown XPCOM-compatible interface, we just pass the scroll/zoom-related values we're interested in as in/out parameters from/to JS via the LayoutHistoryState.
      
      We also require a helper method for initialising an SHEntry's LayoutHistoryState, since normally this doesn't happen until the PresShell wants to capture the history state in it. We on the other hand require a LayoutHistoryState to be present immediately after creation of a fresh SHEntry object, so we can feed it the session store data during history restoration.
      
      MozReview-Commit-ID: FfZf8KDsVWl
      ***
      
      --HG--
      extra : rebase_source : 0b3f729bff3ac24680d6fe8a0fb796979886170b
      0e575681
  9. 04 Mar, 2017 1 commit
  10. 26 Dec, 2015 1 commit
  11. 18 Oct, 2015 1 commit
    • Nathan Froyd's avatar
      Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat · 01583602
      Nathan Froyd authored
      The bulk of this commit was generated with a script, executed at the top
      level of a typical source code checkout.  The only non-machine-generated
      part was modifying MFBT's moz.build to reflect the new naming.
      
      CLOSED TREE makes big refactorings like this a piece of cake.
      
       # The main substitution.
      find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
          xargs perl -p -i -e '
       s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
       s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
      '
      
       # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
      perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
      
       # Handle nsRefPtr.h itself, a couple places that define constructors
       # from nsRefPtr, and code generators specially.  We do this here, rather
       # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
       # things like nsRefPtrHashtable.
      perl -p -i -e 's/nsRefPtr/RefPtr/g' \
           mfbt/nsRefPtr.h \
           xpcom/glue/nsCOMPtr.h \
           xpcom/base/OwningNonNull.h \
           ipc/ipdl/ipdl/lower.py \
           ipc/ipdl/ipdl/builtin.py \
           dom/bindings/Codegen.py \
           python/lldbutils/lldbutils/utils.py
      
       # In our indiscriminate substitution above, we renamed
       # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
      find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
          xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
      
      if [ -d .git ]; then
          git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
      else
          hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
      fi
      
      --HG--
      rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
      01583602
  12. 07 Oct, 2015 2 commits
    • Wes Kocher's avatar
      Backed out changeset 91d4539e00ce (bug 1207245) · 75ff20f5
      Wes Kocher authored
      --HG--
      rename : mfbt/RefPtr.h => mfbt/nsRefPtr.h
      75ff20f5
    • Nathan Froyd's avatar
      Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat · 89a69c82
      Nathan Froyd authored
      The bulk of this commit was generated with a script, executed at the top
      level of a typical source code checkout.  The only non-machine-generated
      part was modifying MFBT's moz.build to reflect the new naming.
      
       # The main substitution.
      find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
          xargs perl -p -i -e '
       s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
       s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
      '
      
       # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
      perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
      
       # Handle nsRefPtr.h itself, a couple places that define constructors
       # from nsRefPtr, and code generators specially.  We do this here, rather
       # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
       # things like nsRefPtrHashtable.
      perl -p -i -e 's/nsRefPtr/RefPtr/g' \
           mfbt/nsRefPtr.h \
           xpcom/glue/nsCOMPtr.h \
           xpcom/base/OwningNonNull.h \
           ipc/ipdl/ipdl/lower.py \
           ipc/ipdl/ipdl/builtin.py \
           dom/bindings/Codegen.py \
           python/lldbutils/lldbutils/utils.py
      
       # In our indiscriminate substitution above, we renamed
       # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
      find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
          xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
      
      if [ -d .git ]; then
          git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
      else
          hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
      fi
      
      --HG--
      rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
      89a69c82
  13. 27 Mar, 2015 1 commit
  14. 21 Mar, 2015 1 commit
    • Ehsan Akhgari's avatar
      Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and... · 883849ee
      Ehsan Akhgari authored
      Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
      
      This patch was automatically generated using the following script:
      
      function convert() {
      echo "Converting $1 to $2..."
      find . \
             ! -wholename "*/.git*" \
             ! -wholename "obj-ff-dbg*" \
               -type f \
            \( -iname "*.cpp" \
               -o -iname "*.h" \
               -o -iname "*.c" \
               -o -iname "*.cc" \
               -o -iname "*.idl" \
               -o -iname "*.ipdl" \
               -o -iname "*.ipdlh" \
               -o -iname "*.mm" \) | \
          xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
      }
      
      convert MOZ_OVERRIDE override
      convert MOZ_FINAL final
      883849ee
  15. 27 Apr, 2014 1 commit
  16. 24 Jul, 2013 1 commit
  17. 02 Sep, 2013 1 commit
  18. 30 Jul, 2012 1 commit
  19. 19 Jun, 2012 1 commit
  20. 21 May, 2012 1 commit
  21. 18 May, 2012 1 commit
  22. 17 Oct, 2011 1 commit
  23. 29 Sep, 2011 1 commit
  24. 06 Oct, 2011 2 commits
  25. 29 Apr, 2011 1 commit
  26. 03 Dec, 2008 1 commit
  27. 21 Jul, 2007 1 commit
  28. 30 Mar, 2006 2 commits
  29. 27 Jan, 2005 1 commit
  30. 18 Apr, 2004 1 commit
  31. 07 Sep, 2003 1 commit
  32. 08 Jan, 2003 1 commit
  33. 07 Sep, 2002 1 commit
  34. 28 Sep, 2001 1 commit
  35. 30 May, 2001 1 commit
    • pollmann%netscape.com's avatar
      Bug 77834: Fix problem where form control state is being restored to the wrong... · 1ac7a371
      pollmann%netscape.com authored
      Bug 77834: Fix problem where form control state is being restored to the wrong form control or not restored at all when going back and forth through session history.  The problem was that the hash key we used was the content ID, which was not consistent from page load to page load.  The fix was to key instead by index of form in document / index of control in form, with logic to fall back to content ID if we are unable to do this. r=nisheeth@netscape.com, sr=jst@netscape.com, a=drivers@mozilla.org (blizzard@mozilla.org)
      1ac7a371
  36. 12 May, 2001 1 commit