gecko-dev/dom/xbl
Emilio Cobos Álvarez 6917a38081 Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky
BindContext was going to have way more information at first, but then I realized
that most of the things I wanted to know were basically a flag away using the
parent node.

Still I think it's worth it, now experimenting with BindToTree will only mean
adding a field to a struct that's included from a couple cpp files, instead of a
massive pain.

I also think this is clearer, and doing this highlights quite a few
inconsistencies in our code which I've left untouched, but commented with
FIXMEs.

Steps are:

$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsresult BindToTree(Document\* aDocument, nsIContent\* aParent,#nsresult BindToTree(BindContext\&, nsINode\& aParent)#g' $file; done
$ for file in $(rg 'nsresult BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#                      nsIContent\* aBindingParent) override#override#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(Document\* aDocument, nsIContent\* aParent,#::BindToTree(BindContext\& aContext, nsINode\& aParent)#g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#nsIContent\* aBindingParent)##g' $file; done
$ for file in $(rg '::BindToTree\(' | cut -d : -f 1 | sort | uniq); do sed -i 's#::BindToTree(aDocument, aParent, aBindingParent)#::BindToTree(aContext, aParent)#g' $file; done
$ ./mach clang-format

Then manual fixups.

Depends on D32948

Differential Revision: https://phabricator.services.mozilla.com/D32949
2019-05-31 23:31:52 +02:00
..
builtin Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
crashtests Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop 2019-05-20 16:50:28 +00:00
test Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop 2019-05-20 16:50:28 +00:00
XBLChildrenElement.cpp Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
XBLChildrenElement.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
moz.build Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsBindingManager.cpp Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug 2019-04-30 01:52:53 +00:00
nsBindingManager.h Bug 1546329 - Remove dead skins code. r=bzbarsky 2019-04-25 14:00:06 +02:00
nsXBLBinding.cpp Bug 1555216 - Change the signature of BindToTree to be (BindContext&, nsINode& aParentNode). r=bzbarsky 2019-05-31 23:31:52 +02:00
nsXBLBinding.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLContentSink.cpp Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLContentSink.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLDocumentInfo.cpp Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLDocumentInfo.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLEventHandler.cpp Bug 1534370 part 2. Annotate doCommand as MOZ_CAN_RUN_SCRIPT. r=masayuki 2019-03-12 01:57:42 +00:00
nsXBLEventHandler.h Bug 1534370 part 2. Annotate doCommand as MOZ_CAN_RUN_SCRIPT. r=masayuki 2019-03-12 01:57:42 +00:00
nsXBLMaybeCompiled.h Bug 1547782 - Implement GCPolicy<T>::isValid for Gecko specializations r=jonco 2019-04-30 21:48:32 +00:00
nsXBLProtoImpl.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
nsXBLProtoImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsXBLProtoImplField.cpp Bug 1521732 - Part 5: RootedObjectVector. r=sfink,jonco 2019-03-26 14:00:51 +00:00
nsXBLProtoImplField.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsXBLProtoImplMember.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsXBLProtoImplMethod.cpp Bug 1521732 - Part 5: RootedObjectVector. r=sfink,jonco 2019-03-26 14:00:51 +00:00
nsXBLProtoImplMethod.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsXBLProtoImplProperty.cpp Bug 1521732 - Part 5: RootedObjectVector. r=sfink,jonco 2019-03-26 14:00:51 +00:00
nsXBLProtoImplProperty.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsXBLPrototypeBinding.cpp Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLPrototypeBinding.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLPrototypeHandler.cpp Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre 2019-04-11 14:12:43 +00:00
nsXBLPrototypeHandler.h Bug 1547618 - Make dom use mozilla::PresShell rather than via nsIPresShell r=smaug 2019-04-30 01:35:30 +00:00
nsXBLSerialize.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsXBLSerialize.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLService.cpp Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug 2019-04-30 01:52:53 +00:00
nsXBLService.h Bug 1546046 - Remove support for XBL resources. r=TYLin 2019-04-23 16:43:15 +00:00
nsXBLWindowKeyHandler.cpp Bug 1540990 - Get rid of unnecessary nsIPresShell.h inclusions r=emilio 2019-04-04 00:19:48 +00:00
nsXBLWindowKeyHandler.h Bug 1534370 part 2. Annotate doCommand as MOZ_CAN_RUN_SCRIPT. r=masayuki 2019-03-12 01:57:42 +00:00