Closed
Bug 1370705
Opened 8 years ago
Closed 8 years ago
Move side effects of setting attribute of HTMLImageElement to after the attribute is set
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: bytesized, Assigned: bytesized)
References
Details
Attachments
(1 file)
The side effects [1] of setting attributes of HTMLImageElement should really happen after the attribute is set rather than before. This will be more important when Bug 1365092 lands, as then moving those side effects should allow the removal of the member variable HTMLImageElement::mForceReload which will be added in that patch.
[1] http://searchfox.org/mozilla-central/rev/20963d7269b1b14d455f47bc0260d0653015bf84/dom/html/HTMLImageElement.cpp#525-580
Updated•8 years ago
|
Priority: -- → P3
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ksteuber
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8875920 -
Flags: review?(bzbarsky)
![]() |
||
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8875920 [details]
Bug 1370705 - Move attribute change effects from HTMLImageElement::BeforeMaybeChangeAttr to HTMLImageElement::AfterMaybeChangeAttr
https://reviewboard.mozilla.org/r/147324/#review152168
r=me
::: dom/html/HTMLImageElement.cpp:514
(Diff revision 3)
> mNewRequestsWillNeedAnimationReset = true;
>
> // Force image loading here, so that we'll try to load the image from
> // network if it's set to be not cacheable... If we change things so that
> // the state gets in Element's attr-setting happen around this
> // LoadImage call, we could start passing false instead of aNotify
I think in the value changed case this is already the case. But in the "same value" case it might not be... the comment might need updating accordingly.
Attachment #8875920 -
Flags: review?(bzbarsky) → review+
Comment hidden (mozreview-request) |
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0b1ae7752ab4
Move attribute change effects from HTMLImageElement::BeforeMaybeChangeAttr to HTMLImageElement::AfterMaybeChangeAttr r=bz
Comment 7•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•