gecko-dev/dom/xml
Andrew McCreight 5a1eb609f9 Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj
If a class A is derived from a class B, then an instance of A can be
converted to an instance of class B via a static cast, so QI is not
needed. QIs are slower than static casts.

TestCallTemplates seems to be testing that CallQueryInterface compiles
even if the first argument's class is only ambiguously castable to
nsISupports, so I changed the second argument to be a class unrelated
to the concrete class.

I also removed some useless null checks on the return value of new.

Differential Revision: https://phabricator.services.mozilla.com/D6838

--HG--
extra : moz-landing-system : lando
2018-09-27 14:59:55 +00:00
..
crashtests Bug 1405878. Make sure to notify for our kids, if needed, before calling DoneAddingChildren in the XML content sink. r=hsivonen 2017-10-09 14:49:19 -04:00
resources Bug 1477458 - Use <link/> instead of <style/> to insert CSS for XML Pretty Printing to avoid site CSP. r=bz 2018-07-21 12:36:39 +01:00
test Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
CDATASection.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
CDATASection.h Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8 2018-09-21 16:45:49 -04:00
ProcessingInstruction.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
ProcessingInstruction.h Bug 1455676 part 21. Remove nsIDOMNode. r=qdot 2018-05-29 22:58:51 -04:00
XMLDocument.cpp Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj 2018-09-27 14:59:55 +00:00
XMLDocument.h Bug 1481601 - Remove now-useless aPreallocateChildren from nsINode::Clone() and friends. r=bzbarsky 2018-08-08 23:58:44 +00:00
XMLStylesheetProcessingInstruction.cpp Bug 1479860: Remove unused aCompileEventHandlers argument from BindToTree. r=bz 2018-08-01 10:42:54 +02:00
XMLStylesheetProcessingInstruction.h Bug 1479860: Remove unused aCompileEventHandlers argument from BindToTree. r=bz 2018-08-01 10:42:54 +02:00
htmlmathml-f.ent Bug 1479815. Align our XHTML entity definitions with the HTML ones. r=hsivonen 2018-08-08 08:27:17 +00:00
moz.build Bug 1435430 part 1. Switch to creating XSLTProcessors via constructor, not contract. r=mystor 2018-02-05 16:00:04 -05:00
nsIXMLContentSink.h
nsXMLContentSink.cpp Bug 1455649 - DocumentL10n, part 3 - Plug DocumentL10n life cycle into DOM hooks. r=smaug 2018-09-06 18:28:40 -07:00
nsXMLContentSink.h Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan 2018-09-07 14:47:51 +00:00
nsXMLElement.cpp Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8 2018-09-21 16:45:49 -04:00
nsXMLElement.h Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8 2018-09-21 16:45:49 -04:00
nsXMLFragmentContentSink.cpp Bug 1418246 - Return valid columnNumber value in CSP violation events, r=ckerschb 2018-07-05 08:21:04 +02:00
nsXMLPrettyPrinter.cpp Bug 1437956 - Pretty print XML with Shadow DOM r=smaug 2018-06-01 17:45:11 +08:00
nsXMLPrettyPrinter.h Bug 1437956 - Pretty print XML with Shadow DOM r=smaug 2018-06-01 17:45:11 +08:00