gecko-dev/dom/xul
Kirk Steuber e74f1cd513 Bug 1363481 - Add the old attribute value as a parameter to Element::AfterSetAttr r=bz
In order to facilitate the movement of code with side-effects called by Element::SetAttr to Element::BeforeSetAttr and Element::AfterSetAttr, Element::AfterSetAttr should have access to the old value of the attribute. This includes information about whether there was previously a value set or not.

Accomplishing this involved passing an additional argument through functions that find and change the old attribute value in order to ensure that we can differentiate between an empty old value and an absent old value (attribute was not set).

Note that while I tried to ensure that accurate values (and their absence) are reported to Element::AfterSetAttr, I largely ignored SVG. While the old value reported for SVG values should be however accurate the value already being reported to SetAttrAndNotify was, SVG elements do not currently report unset values properly because they will never pass a null pointer to SetAttrAndNotify.

MozReview-Commit-ID: K1mha8CNFZP

--HG--
extra : rebase_source : 42776eb01451d371e4aebcc17fe3dd112c8d268b
2017-05-18 14:09:01 -07:00
..
crashtests Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
templates Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
test Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
XULDocument.cpp Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
XULDocument.h Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
moz.build Bug 1335082 - add BUG_COMPONENT to dom/xul/* files. r=Neil 2017-02-02 06:33:47 -05:00
nsForwardReference.h
nsIController.idl
nsIControllers.idl
nsIXULDocument.h
nsIXULOverlayProvider.idl
nsXULCommandDispatcher.cpp Bug 1354564, add a queue-up mechanism to command dispatchers that lets updates be queued up so that duplicates can be removed. Use this for tab switching to reduce the number of extraneous command updates that occur, r=mconley 2017-05-01 10:42:33 -04:00
nsXULCommandDispatcher.h Bug 1354564, add a queue-up mechanism to command dispatchers that lets updates be queued up so that duplicates can be removed. Use this for tab switching to reduce the number of extraneous command updates that occur, r=mconley 2017-05-01 10:42:33 -04:00
nsXULContentSink.cpp Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
nsXULContentSink.h Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky 2017-01-05 15:31:56 +08:00
nsXULControllers.cpp
nsXULControllers.h
nsXULElement.cpp Bug 1363481 - Add the old attribute value as a parameter to Element::AfterSetAttr r=bz 2017-05-18 14:09:01 -07:00
nsXULElement.h Bug 1363481 - Add the old attribute value as a parameter to Element::AfterSetAttr r=bz 2017-05-18 14:09:01 -07:00
nsXULPopupListener.cpp Bug 1297569 - Disable XUL popup contextmenu handler for all remote targets. r=felipe 2016-08-26 18:32:09 -05:00
nsXULPopupListener.h
nsXULPrototypeCache.cpp Backed out changeset cc308a73ad05 (bug 1347314) for eslint failure in test_device.html. r=backout 2017-03-22 18:20:26 +01:00
nsXULPrototypeCache.h Bug 1339627 Part 1: Add a Servo-specific StyleSheet table to nsXULPrototypeCache. r=heycam 2017-03-06 14:59:37 -08:00
nsXULPrototypeDocument.cpp
nsXULPrototypeDocument.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00