Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
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
2015-10-18 01:24:48 -04:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Bevis Tseng 411426aa0f Bug 1155142 - Part 1: Move All IccInfo-related Implementation to IccService to deprecate rilContext. r=echen 2015-04-17 19:03:46 +08:00
Bevis Tseng 20a12fcc38 Bug 1114935 - Part 8: Mark TODO items for deprecating RILContentHelper. r=echen
--HG--
extra : histedit_source : e0798b1d557e71945b2190ac1f6ff4c46a199313
2015-02-13 15:05:37 +08:00
Bevis Tseng a7cd6b1d89 Bug 1114935 - Part 7: Add Backward Compatibility for v2.2 binary implementation. r=echen
--HG--
extra : histedit_source : bd9d8cc9cbaeb6c7eb3aa1add377dbb5eef50ebb
2015-02-13 14:46:49 +08:00
Bevis Tseng e511c87731 Bug 1114935 - Part 5.1: Bind new nsIccService into MozIcc. r=echen, r=hsinyi
--HG--
extra : histedit_source : c4f30cabe18e4a2ef4f6a34745e95d46c5baaff7
2015-01-13 18:03:44 +08:00
Boris Zbarsky dc24477d79 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Gregor Wagner fa698fe8a9 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Bevis Tseng a8edfef94d Bug 1114935 - Part 8: Mark TODO items for deprecating RILContentHelper. r=echen
--HG--
extra : rebase_source : c3f2acbf1efc7c9ac5e8ef599ca8b93278aea887
extra : histedit_source : 0e5e2a00764bafb7b14314d4a4ef6f6191be22d8
2015-02-13 15:05:37 +08:00
Bevis Tseng 75add2d01e Bug 1114935 - Part 7: Add Backward Compatibility for v2.2 binary implementation. r=echen
--HG--
extra : rebase_source : d88628e55aef0c92e711643a63657855a74ad87f
extra : histedit_source : 6e72eb3947c97742509c35de0a46e79df246bc94
2015-02-13 14:46:49 +08:00
Bevis Tseng bb7c33d747 Bug 1114935 - Part 5.1: Bind new nsIccService into MozIcc. r=echen, r=hsinyi
--HG--
extra : rebase_source : 115641804ec40a733ea7313043f44478774f8ecf
extra : histedit_source : adeca2a2a706247efad367073b2c7943af4e4496
2015-01-13 18:03:44 +08:00
Edgar Chen 23f6b7be43 Bug 1087847 - Make sure the Icc status in MobileConnection and IccManager are synced. r=hsinyi,smaug 2014-11-13 19:12:11 +08:00
Edgar Chen 02486c284f Bug 994461 - Part 1: Move IccInfo to WebIDL. r=smaug,vicamo
--HG--
rename : dom/icc/interfaces/nsIDOMIccInfo.idl => dom/icc/interfaces/nsIIccInfo.idl
2014-09-19 15:53:05 +08:00
Birunthan Mohanathas ed37c377e3 Bug 1058101 - Flatten dom/icc/src/ into parent directory. r=mccr8
--HG--
rename : dom/icc/src/Icc.cpp => dom/icc/Icc.cpp
rename : dom/icc/src/Icc.h => dom/icc/Icc.h
rename : dom/icc/src/IccListener.cpp => dom/icc/IccListener.cpp
rename : dom/icc/src/IccListener.h => dom/icc/IccListener.h
rename : dom/icc/src/IccManager.cpp => dom/icc/IccManager.cpp
rename : dom/icc/src/IccManager.h => dom/icc/IccManager.h
2014-08-27 10:12:15 -07:00