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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGTransformList.idl

Issue 1509493002: Disallow [Measure] and [MeasureAs] on interfaces without a constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 // http://www.w3.org/TR/SVG2/coords.html#InterfaceSVGTransformList 27 // http://www.w3.org/TR/SVG2/coords.html#InterfaceSVGTransformList
28 28
29 [ 29 [
30 ImplementedAs=SVGTransformListTearOff, 30 ImplementedAs=SVGTransformListTearOff,
31 SetWrapperReferenceTo(SVGElement contextElement), 31 SetWrapperReferenceTo(SVGElement contextElement),
32 RuntimeEnabled=SVG1DOM, 32 RuntimeEnabled=SVG1DOM,
33 MeasureAs=SVG1DOM,
34 WillBeGarbageCollected, 33 WillBeGarbageCollected,
35 ] interface SVGTransformList { 34 ] interface SVGTransformList {
36 readonly attribute unsigned long length; 35 readonly attribute unsigned long length;
37 [ImplementedAs=length] readonly attribute unsigned long numberOfItems; 36 [ImplementedAs=length] readonly attribute unsigned long numberOfItems;
38 37
39 [RaisesException] void clear(); 38 [RaisesException] void clear();
40 [RaisesException] SVGTransform initialize(SVGTransform newItem); 39 [RaisesException] SVGTransform initialize(SVGTransform newItem);
41 [RaisesException] getter SVGTransform getItem(unsigned long index); 40 [RaisesException] getter SVGTransform getItem(unsigned long index);
42 [RaisesException] SVGTransform insertItemBefore(SVGTransform newItem, unsign ed long index); 41 [RaisesException] SVGTransform insertItemBefore(SVGTransform newItem, unsign ed long index);
43 [RaisesException] SVGTransform replaceItem(SVGTransform newItem, unsigned lo ng index); 42 [RaisesException] SVGTransform replaceItem(SVGTransform newItem, unsigned lo ng index);
44 [RaisesException] SVGTransform removeItem(unsigned long index); 43 [RaisesException] SVGTransform removeItem(unsigned long index);
45 [RaisesException] SVGTransform appendItem(SVGTransform newItem); 44 [RaisesException] SVGTransform appendItem(SVGTransform newItem);
46 // TODO(philipj): SVGMatrix should be DOMMatrix. 45 // TODO(philipj): SVGMatrix should be DOMMatrix.
47 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); 46 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
48 [RaisesException, MeasureAs=SVGTransformListConsolidate] SVGTransform? conso lidate(); 47 [RaisesException, MeasureAs=SVGTransformListConsolidate] SVGTransform? conso lidate();
49 [RaisesException] setter void (unsigned long index, SVGTransform newItem); 48 [RaisesException] setter void (unsigned long index, SVGTransform newItem);
50 }; 49 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698