gecko-dev/dom/xbl
Julian Seward 408d24da56 Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions.  The replaced functions are:

  void nsCString::AssignWithConversion( const nsAString& aData )
  void nsString::AssignWithConversion( const nsACString& aData )

  void nsTString_CharT::AssignWithConversion(
                            const incompatible_char_type* aData,
                            int32_t aLength = -1);

The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.

This has two advantages:

* it removes code

* at the call points, it makes clear (from the replacement name) which
  conversion is being carried out.  The generic name "AssignWithConversion"
  doesn't make that obvious -- one had to infer it from the types.

The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related.  They are
at top level, where they would never have compiled.  They look like
leftovers from some previous change.

--HG--
extra : rebase_source : fb47bf450771c3c9ee3341dd14520f5da69ec4f5
2017-07-24 19:23:52 +02:00
..
builtin
crashtests Bug 1341102 - Re-enable some crashtests. r=me 2017-07-24 18:35:19 -07:00
test Bug 1373513 - Part 2: Revert Bug 1364367. r=ckerschb 2017-07-12 11:00:27 +08:00
moz.build Bug 1351783 part 6 - Create and send KeyboardMap to APZCTreeManager. r=kats 2017-06-05 18:35:32 -05:00
nsBindingManager.cpp Bug 1376981 - Label nsBindingManager::PostProcessAttachedQueueEvent (r=smaug) 2017-07-03 16:20:04 -07:00
nsBindingManager.h Bug 1357142: Kill PresShell::RecreateFramesFor. r=bz 2017-04-17 18:01:37 +02:00
nsXBLBinding.cpp Bug 1372061 - Add node flag recording whether we might have anonymous children. r=bholley 2017-06-27 23:56:12 -07:00
nsXBLBinding.h Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj. 2017-06-20 19:19:05 +10:00
nsXBLContentSink.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsXBLContentSink.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLDocumentInfo.cpp Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj 2017-07-05 02:01:45 +02:00
nsXBLDocumentInfo.h Bug 1363640 Part 5 - Add a table in nsXULPrototypeCache to cache XBL documents with servo backend. r=bz,heycam 2017-05-19 15:18:00 -07:00
nsXBLEventHandler.cpp
nsXBLEventHandler.h Bug 1351783 part 4 - Add a KeyboardShortcut type. r=kats,masayuki 2017-06-05 18:24:35 -05:00
nsXBLMaybeCompiled.h Bug 1325406 - Refactor rooting base class templates r=sfink r=mccr8 2017-01-10 10:12:14 +00:00
nsXBLProtoImpl.cpp Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLProtoImpl.h
nsXBLProtoImplField.cpp Bug 1371259 part 9. Make UnwrapReflectorToISupports return already_AddRefed<nsISupports>. r=peterv 2017-07-10 16:05:26 -04:00
nsXBLProtoImplField.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLProtoImplMember.h
nsXBLProtoImplMethod.cpp Bug 1359859. Use the right entry global for XBL constructor/destructor/field execution. r=bholley 2017-04-26 13:57:55 -04:00
nsXBLProtoImplMethod.h
nsXBLProtoImplProperty.cpp Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLProtoImplProperty.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLPrototypeBinding.cpp Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm. 2017-07-24 19:23:52 +02:00
nsXBLPrototypeBinding.h Bug 1290276 Part 6 - Add FFI functions to allow various XBL data to be used from servo side. r=heycam 2017-06-05 14:00:27 +08:00
nsXBLPrototypeHandler.cpp Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm. 2017-07-24 19:23:52 +02:00
nsXBLPrototypeHandler.h Bug 1351783 part 4 - Add a KeyboardShortcut type. r=kats,masayuki 2017-06-05 18:24:35 -05:00
nsXBLPrototypeResources.cpp Bug 1377196 Part 1 - Store nsBindingManager* in ServoStyleSet. r=heycam 2017-06-29 13:43:59 -07:00
nsXBLPrototypeResources.h Bug 1372757 - Remove several dependencies to ServoBindings.h. r=heycam 2017-06-14 09:38:16 +10:00
nsXBLResourceLoader.cpp Bug 1375513 Part 1 - Support non-chrome XBL bindings with stylesheets for stylo. r=heycam 2017-06-27 22:49:19 -07:00
nsXBLResourceLoader.h Bug 1290276 Part 5 - Add XBL stylesheets to ServoStyleSet so that it can be used in servo cascading later. r=heycam 2017-06-05 13:06:52 +08:00
nsXBLSerialize.cpp
nsXBLSerialize.h Bug 1363640 Part 3 - Strip whitespaces for files under dom/xbl. r=heycam 2017-05-09 20:45:11 -07:00
nsXBLService.cpp Bug 1382357 - Wait to destroy frames until after we've successfully fetched the binding. r=heycam 2017-07-19 21:52:36 -07:00
nsXBLService.h
nsXBLWindowKeyHandler.cpp Bug 1333459 - part2-3: Make nsMenuBarListener::KeyPress() wait reply from remote process if the eKeyPress event will be sent to a remote process later r=smaug 2017-07-19 18:39:34 +09:00
nsXBLWindowKeyHandler.h Bug 1351783 part 19 - Rename Keyboard.h to KeyboardMap.h. r=masayuki 2017-06-15 18:06:00 -04:00
XBLChildrenElement.cpp Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz 2017-06-07 10:28:20 -07:00
XBLChildrenElement.h Bug 1365092 - Move side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr r=bz 2017-06-07 10:28:20 -07:00