summaryrefslogtreecommitdiff
path: root/dom/html/HTMLImageElement.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-16 19:59:10 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-16 19:59:10 -0400
commit548871a6a7c80ca37bfd35ecbbfa0fd03f733341 (patch)
treed6f5779a031f2c957612dd4f0dd0d6ee166f9a8b /dom/html/HTMLImageElement.cpp
parent89ab8bfc0582b3276fe3702fd54c3099d86c71d2 (diff)
downloadaura-central-548871a6a7c80ca37bfd35ecbbfa0fd03f733341.tar.gz
Bug 656197 - Push state updates further out across beforesetattr/aftersetattr
* Remove the generic attr preparsing mechanism from BeforeSetAttr and just preparse class attributes directly in the one place that needs to do it * Move calls to BeforeSetAttr to after AttributeWillChange * Remove UpdateState calls in BeforeSetAttr * Move calls to AfterSetAttr to before UpdateState when manipulating attributes * Remove UpdateState calls from AfterSetAttr, since they are no longer needed there Tag mcp-graveyard/UXP%1375
Diffstat (limited to 'dom/html/HTMLImageElement.cpp')
-rw-r--r--dom/html/HTMLImageElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/HTMLImageElement.cpp b/dom/html/HTMLImageElement.cpp
index 49cbebc5a..5d0cfd15e 100644
--- a/dom/html/HTMLImageElement.cpp
+++ b/dom/html/HTMLImageElement.cpp
@@ -369,7 +369,7 @@ HTMLImageElement::GetAttributeMappingFunction() const
nsresult
HTMLImageElement::BeforeSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
- nsAttrValueOrString* aValue,
+ const nsAttrValueOrString* aValue,
bool aNotify)
{