Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: Source/core/html/HTMLImageElement.idl

Issue 340443004: IDL: reuse more code between CG for methods and constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename scriptContext -> executionContext Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLAudioElement.idl ('k') | Source/core/html/HTMLOptionElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.idl
diff --git a/Source/core/html/HTMLImageElement.idl b/Source/core/html/HTMLImageElement.idl
index df267ac2a0b0619dc0c029a55737fae7330b2566..0413317c26399d1f08e309e0908f13d1ba7d756a 100644
--- a/Source/core/html/HTMLImageElement.idl
+++ b/Source/core/html/HTMLImageElement.idl
@@ -21,7 +21,8 @@
// FIXME: NamedConstructor does not support optional without Default. Fortunately using Undefined makes
// us use 0 which happens to be the default width and height anyway.
[
- NamedConstructor=Image([Default=Undefined] optional long width, [Default=Undefined] optional long height)
+ NamedConstructor=Image([Default=Undefined] optional long width, [Default=Undefined] optional long height),
+ ConstructorCallWith=Document
] interface HTMLImageElement : HTMLElement {
[Reflect] attribute DOMString align;
[Reflect] attribute DOMString alt;
« no previous file with comments | « Source/core/html/HTMLAudioElement.idl ('k') | Source/core/html/HTMLOptionElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698