Another round of ImageDocument cleanup.
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(6 files, 2 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
This effectively already happens on Firefox.
Android doesn't use full zoom so this is also shouldn't affect it, and it seems
reasonable behavior.
Depends on D71753
Assignee | ||
Comment 3•4 years ago
|
||
The comment no longer made any sense, and IgnoreErrors() is nicer than
manually doing so.
Depends on D71754
Assignee | ||
Comment 4•4 years ago
|
||
It's what it wants, really.
Depends on D71755
Assignee | ||
Comment 5•4 years ago
|
||
Unused except for one caller that can just be inlined.
Depends on D71756
Assignee | ||
Comment 6•4 years ago
|
||
The overflow can be inferred from other variables.
Depends on D71757
Assignee | ||
Comment 7•4 years ago
|
||
Saves a few QIs and such.
Depends on D71758
Assignee | ||
Comment 8•4 years ago
|
||
This was copy-pasta from the full-zoom code I'm changing in other patches in
this bug. However this code seems slightly more wrong: if mOriginalResolution
was somehow not 1.0, it seems to me like the right behavior would be to allow
resizing the image if the user zooms out. This patch allows that, and is
simpler, and not android-specific.
Assignee | ||
Updated•4 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/248a7a6c782e Convert some imagedocument prefs to static prefs. r=smaug
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fc6e3f356b0d Miscellaneous cleanups on ImageDocument. r=smaug https://hg.mozilla.org/integration/autoland/rev/2f88dd16b396 Remove ImageDocument.restoreImageTo. r=smaug https://hg.mozilla.org/integration/autoland/rev/b6f193afd449 Track less state about overflow in ImageDocument. r=smaug https://hg.mozilla.org/integration/autoland/rev/6da46fc6472c Store an HTMLImageElement in ImageDocument. r=smaug
Updated•4 years ago
|
Comment 11•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d776a0e1331 Unifdef ImageDocument's resolution logic. r=botond
Comment 14•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•