зеркало из https://github.com/mozilla/gecko-dev.git
e74f1cd513
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 |
||
---|---|---|
.. | ||
crashtests | ||
templates | ||
test | ||
XULDocument.cpp | ||
XULDocument.h | ||
moz.build | ||
nsForwardReference.h | ||
nsIController.idl | ||
nsIControllers.idl | ||
nsIXULDocument.h | ||
nsIXULOverlayProvider.idl | ||
nsXULCommandDispatcher.cpp | ||
nsXULCommandDispatcher.h | ||
nsXULContentSink.cpp | ||
nsXULContentSink.h | ||
nsXULControllers.cpp | ||
nsXULControllers.h | ||
nsXULElement.cpp | ||
nsXULElement.h | ||
nsXULPopupListener.cpp | ||
nsXULPopupListener.h | ||
nsXULPrototypeCache.cpp | ||
nsXULPrototypeCache.h | ||
nsXULPrototypeDocument.cpp | ||
nsXULPrototypeDocument.h |