servo/components/script/dom
bors-servo 57cc84b293 Auto merge of #6110 - klusark:NamedConstructor, r=Ms2ger
Implement Named constructors and the Image constructor for HTMLImageElement

I'm not sure if I like how I mostly just duplicated the code in CodegenRust.py, so that might need to be refactored.

Instead of just calling it Image, we might want to call it ConstructorImage, to make it clear that it's a constructor. Anyone have an opinion on that?

There seems to be a bug in the HTMLImageElement getter/setter as the value is 0 regardless of what I do. This seems to be unrelated to my commits, so I'll investigate that separately.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6110)
<!-- Reviewable:end -->
2015-06-25 02:18:06 -06:00
..
bindings Auto merge of #6110 - klusark:NamedConstructor, r=Ms2ger 2015-06-25 02:18:06 -06:00
webidls Implement the Image NamedConstructor for HTMLImageElement 2015-06-24 10:42:54 -07:00
activation.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
attr.rs Implement AttrHelpersForLayout for LayoutJS<Attr> rather than Attr itself. 2015-06-20 18:51:25 +02:00
blob.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
browsercontext.rs Silence a warning about BrowserContext. 2015-06-23 14:04:06 +02:00
canvasgradient.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
canvaspattern.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
canvasrenderingcontext2d.rs Create pattern from HTMLCanvasElement or CanvasRenderingContext2D. 2015-06-24 09:56:28 +09:00
characterdata.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
closeevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
comment.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
console.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
create.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
css.rs Implement the CSS interface 2015-04-25 12:36:38 +02:00
cssstyledeclaration.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
customevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
dedicatedworkerglobalscope.rs Fix some warnings caused by the SM upgrade 2015-06-19 22:07:08 -04:00
document.rs Trigger reflow after rAF callbacks. 2015-06-25 05:40:23 +10:00
documentfragment.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
documenttype.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domexception.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domimplementation.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domparser.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domrect.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domrectlist.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domstringmap.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
domtokenlist.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
element.rs Refactoring, return an Atom from Element::parsed_name. #5774 2015-06-23 08:55:40 +02:00
errorevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
event.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
eventdispatcher.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
eventtarget.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
file.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
formdata.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlanchorelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlappletelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlareaelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlaudioelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlbaseelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlbodyelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlbrelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlbuttonelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlcanvaselement.rs Fix some warnings caused by the SM upgrade 2015-06-19 22:07:08 -04:00
htmlcollection.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmldataelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmldatalistelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmldialogelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmldirectoryelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmldivelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmldlistelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlembedelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlfieldsetelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlfontelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlformelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlframeelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlframesetelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlheadelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlheadingelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlhrelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlhtmlelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmliframeelement.rs Implement AttrHelpersForLayout for LayoutJS<Attr> rather than Attr itself. 2015-06-20 18:51:25 +02:00
htmlimageelement.rs Implement the Image NamedConstructor for HTMLImageElement 2015-06-24 10:42:54 -07:00
htmlinputelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmllabelelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmllegendelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmllielement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmllinkelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlmapelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlmediaelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlmetaelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlmeterelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlmodelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlobjectelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlolistelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmloptgroupelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmloptionelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmloutputelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlparagraphelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlparamelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlpreelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlprogresselement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlquoteelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlscriptelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlselectelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlsourceelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlspanelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlstyleelement.rs Fix some warnings caused by the SM upgrade 2015-06-19 22:07:08 -04:00
htmltablecaptionelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltablecellelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltablecolelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltabledatacellelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltableelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltableheadercellelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltablerowelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltablesectionelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltemplateelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltextareaelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltimeelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltitleelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmltrackelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlulistelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlunknownelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
htmlvideoelement.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
imagedata.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
keyboardevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
location.rs Implement URL and trivially missing URLUtils members 2015-06-20 15:17:55 +02:00
macros.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
messageevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
mod.rs Implement URL and trivially missing URLUtils members 2015-06-20 15:17:55 +02:00
mouseevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
namednodemap.rs Refactoring, return an Atom from Element::parsed_name. #5774 2015-06-23 08:55:40 +02:00
navigator.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
navigatorinfo.rs Implement Navigator.appVersion(#5409) 2015-04-01 00:36:40 +09:00
node.rs Implement the LayoutData getters on LayoutJS<Node> rather than Node itself. 2015-06-22 10:47:21 +02:00
nodeiterator.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
nodelist.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
performance.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
performancetiming.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
processinginstruction.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
progressevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
range.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
screen.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
servohtmlparser.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
storage.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
storageevent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
testbinding.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
testbindingproxy.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
text.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
textdecoder.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
textencoder.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
treewalker.rs Update 'traverse children' to the latest spec. 2015-06-23 15:52:50 +02:00
uievent.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
url.rs Implement URL and trivially missing URLUtils members 2015-06-20 15:17:55 +02:00
urlhelper.rs Implement URL and trivially missing URLUtils members 2015-06-20 15:17:55 +02:00
urlsearchparams.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
userscripts.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
validitystate.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
virtualmethods.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglactiveinfo.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglbuffer.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglframebuffer.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglobject.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglprogram.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglrenderbuffer.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglrenderingcontext.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglshader.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webglshaderprecisionformat.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webgltexture.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
webgluniformlocation.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
websocket.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
window.rs Trigger reflow after rAF callbacks. 2015-06-25 05:40:23 +10:00
worker.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
workerglobalscope.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
workerlocation.rs Implement URL and trivially missing URLUtils members 2015-06-20 15:17:55 +02:00
workernavigator.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
xmlhttprequest.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
xmlhttprequesteventtarget.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
xmlhttprequestupload.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00