Closed
Bug 1380413
Opened 9 years ago
Closed 9 years ago
Remove some unused nsIDOMHTMLImageElement bits
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
|
9.81 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
|
3.21 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
At least x/y are not used.
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8886004 -
Flags: review?(continuation)
| Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8886005 -
Flags: review?(continuation)
Comment 3•9 years ago
|
||
Comment on attachment 8886004 [details] [diff] [review]
part 1. Remove unused nsIDOMHTMLImageElement bits
Review of attachment 8886004 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/html/HTMLImageElement.h
@@ +168,5 @@
> void SetCrossOrigin(const nsAString& aCrossOrigin, ErrorResult& aError)
> {
> SetOrRemoveNullableStringAttr(nsGkAtoms::crossorigin, aCrossOrigin, aError);
> }
> + void GetUseMap(nsAString& aUseMap)
This is all some tedious code.
Attachment #8886004 -
Flags: review?(continuation) → review+
Updated•9 years ago
|
Attachment #8886005 -
Flags: review?(continuation) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/666ff5b5a597
part 1. Remove unused nsIDOMHTMLImageElement bits. r=mccr8
https://hg.mozilla.org/integration/mozilla-inbound/rev/62015017951d
part 2. Remove nsIDOMHTMLImageElement.width/height. r=mccr8
Comment 5•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/666ff5b5a597
https://hg.mozilla.org/mozilla-central/rev/62015017951d
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Comment 6•9 years ago
|
||
Hmm, that smashed TB. We use
https://dxr.mozilla.org/comm-central/rev/b61e73be467cef8a7231c42c0aba1a82ddfffada/mailnews/compose/src/nsMsgCompose.cpp#275
and we also use naturalWidth:
https://dxr.mozilla.org/comm-central/search?q=naturalWidth&redirect=false
You may want to comment on bug 1381011.
Blocks: 1381011
Flags: needinfo?(bzbarsky)
Comment 7•9 years ago
|
||
Apart from Get/SetSrc we also use GetLongDesc and GetName.
I can see:
https://hg.mozilla.org/mozilla-central/rev/62015017951d#l2.16
but HTMLImageElement is not a published class outside M-C, or is it?
How do I say it nicely? How come a huge chunk of the published IDL just got removed?
https://hg.mozilla.org/mozilla-central/rev/666ff5b5a597#l3.12
| Assignee | ||
Comment 8•9 years ago
|
||
> How do I say it nicely? How come a huge chunk of the published IDL just got removed?
Because it's dead code as far as I could tell, and it's adding codesize we'd rather not be shipping.
HTMLImageElement is exported to mozilla/dom/HTMLImageElement.h. Can Thunderbird not use that?
Flags: needinfo?(bzbarsky)
| Assignee | ||
Comment 9•9 years ago
|
||
Oh, and the general plan is to slowly work on removing nsIDOM* bits in general, for the same reason. So if Thunderbird is using those, you may want to see if you can work on stopping that.
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•