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

Unified Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 300923003: Modify blink type map to finalize lazily (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerate / merge 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
Index: sdk/lib/svg/dartium/svg_dartium.dart
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index d030f0607369f57c3d45ff66b649593d55c34ba1..c2bf7221b8b1bb397fe7d59a8abdce5fad4cc81a 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -15,151 +15,151 @@ import 'dart:_blink' as _blink;
// FIXME: Can we make this private?
-const svgBlinkMap = const {
- 'SVGAElement': AElement,
- 'SVGAltGlyphDefElement': _SVGAltGlyphDefElement,
- 'SVGAltGlyphElement': AltGlyphElement,
- 'SVGAltGlyphItemElement': _SVGAltGlyphItemElement,
- 'SVGAngle': Angle,
- 'SVGAnimateElement': AnimateElement,
- 'SVGAnimateMotionElement': AnimateMotionElement,
- 'SVGAnimateTransformElement': AnimateTransformElement,
- 'SVGAnimatedAngle': AnimatedAngle,
- 'SVGAnimatedBoolean': AnimatedBoolean,
- 'SVGAnimatedEnumeration': AnimatedEnumeration,
- 'SVGAnimatedInteger': AnimatedInteger,
- 'SVGAnimatedLength': AnimatedLength,
- 'SVGAnimatedLengthList': AnimatedLengthList,
- 'SVGAnimatedNumber': AnimatedNumber,
- 'SVGAnimatedNumberList': AnimatedNumberList,
- 'SVGAnimatedPreserveAspectRatio': AnimatedPreserveAspectRatio,
- 'SVGAnimatedRect': AnimatedRect,
- 'SVGAnimatedString': AnimatedString,
- 'SVGAnimatedTransformList': AnimatedTransformList,
- 'SVGAnimationElement': AnimationElement,
- 'SVGCircleElement': CircleElement,
- 'SVGClipPathElement': ClipPathElement,
- 'SVGComponentTransferFunctionElement': _SVGComponentTransferFunctionElement,
- 'SVGCursorElement': _SVGCursorElement,
- 'SVGDefsElement': DefsElement,
- 'SVGDescElement': DescElement,
- 'SVGDiscardElement': DiscardElement,
- 'SVGElement': SvgElement,
- 'SVGElementInstance': ElementInstance,
- 'SVGElementInstanceList': _ElementInstanceList,
- 'SVGEllipseElement': EllipseElement,
- 'SVGFEBlendElement': FEBlendElement,
- 'SVGFEColorMatrixElement': FEColorMatrixElement,
- 'SVGFEComponentTransferElement': FEComponentTransferElement,
- 'SVGFECompositeElement': FECompositeElement,
- 'SVGFEConvolveMatrixElement': FEConvolveMatrixElement,
- 'SVGFEDiffuseLightingElement': FEDiffuseLightingElement,
- 'SVGFEDisplacementMapElement': FEDisplacementMapElement,
- 'SVGFEDistantLightElement': FEDistantLightElement,
- 'SVGFEDropShadowElement': _SVGFEDropShadowElement,
- 'SVGFEFloodElement': FEFloodElement,
- 'SVGFEFuncAElement': FEFuncAElement,
- 'SVGFEFuncBElement': FEFuncBElement,
- 'SVGFEFuncGElement': FEFuncGElement,
- 'SVGFEFuncRElement': FEFuncRElement,
- 'SVGFEGaussianBlurElement': FEGaussianBlurElement,
- 'SVGFEImageElement': FEImageElement,
- 'SVGFEMergeElement': FEMergeElement,
- 'SVGFEMergeNodeElement': FEMergeNodeElement,
- 'SVGFEMorphologyElement': FEMorphologyElement,
- 'SVGFEOffsetElement': FEOffsetElement,
- 'SVGFEPointLightElement': FEPointLightElement,
- 'SVGFESpecularLightingElement': FESpecularLightingElement,
- 'SVGFESpotLightElement': FESpotLightElement,
- 'SVGFETileElement': FETileElement,
- 'SVGFETurbulenceElement': FETurbulenceElement,
- 'SVGFilterElement': FilterElement,
- 'SVGFilterPrimitiveStandardAttributes': FilterPrimitiveStandardAttributes,
- 'SVGFitToViewBox': FitToViewBox,
- 'SVGFontElement': _SVGFontElement,
- 'SVGFontFaceElement': _SVGFontFaceElement,
- 'SVGFontFaceFormatElement': _SVGFontFaceFormatElement,
- 'SVGFontFaceNameElement': _SVGFontFaceNameElement,
- 'SVGFontFaceSrcElement': _SVGFontFaceSrcElement,
- 'SVGFontFaceUriElement': _SVGFontFaceUriElement,
- 'SVGForeignObjectElement': ForeignObjectElement,
- 'SVGGElement': GElement,
- 'SVGGeometryElement': GeometryElement,
- 'SVGGlyphElement': _SVGGlyphElement,
- 'SVGGlyphRefElement': _SVGGlyphRefElement,
- 'SVGGradientElement': _GradientElement,
- 'SVGGraphicsElement': GraphicsElement,
- 'SVGHKernElement': _SVGHKernElement,
- 'SVGImageElement': ImageElement,
- 'SVGLength': Length,
- 'SVGLengthList': LengthList,
- 'SVGLineElement': LineElement,
- 'SVGLinearGradientElement': LinearGradientElement,
- 'SVGMPathElement': _SVGMPathElement,
- 'SVGMarkerElement': MarkerElement,
- 'SVGMaskElement': MaskElement,
- 'SVGMatrix': Matrix,
- 'SVGMetadataElement': MetadataElement,
- 'SVGMissingGlyphElement': _SVGMissingGlyphElement,
- 'SVGNumber': Number,
- 'SVGNumberList': NumberList,
- 'SVGPathElement': PathElement,
- 'SVGPathSeg': PathSeg,
- 'SVGPathSegArcAbs': PathSegArcAbs,
- 'SVGPathSegArcRel': PathSegArcRel,
- 'SVGPathSegClosePath': PathSegClosePath,
- 'SVGPathSegCurvetoCubicAbs': PathSegCurvetoCubicAbs,
- 'SVGPathSegCurvetoCubicRel': PathSegCurvetoCubicRel,
- 'SVGPathSegCurvetoCubicSmoothAbs': PathSegCurvetoCubicSmoothAbs,
- 'SVGPathSegCurvetoCubicSmoothRel': PathSegCurvetoCubicSmoothRel,
- 'SVGPathSegCurvetoQuadraticAbs': PathSegCurvetoQuadraticAbs,
- 'SVGPathSegCurvetoQuadraticRel': PathSegCurvetoQuadraticRel,
- 'SVGPathSegCurvetoQuadraticSmoothAbs': PathSegCurvetoQuadraticSmoothAbs,
- 'SVGPathSegCurvetoQuadraticSmoothRel': PathSegCurvetoQuadraticSmoothRel,
- 'SVGPathSegLinetoAbs': PathSegLinetoAbs,
- 'SVGPathSegLinetoHorizontalAbs': PathSegLinetoHorizontalAbs,
- 'SVGPathSegLinetoHorizontalRel': PathSegLinetoHorizontalRel,
- 'SVGPathSegLinetoRel': PathSegLinetoRel,
- 'SVGPathSegLinetoVerticalAbs': PathSegLinetoVerticalAbs,
- 'SVGPathSegLinetoVerticalRel': PathSegLinetoVerticalRel,
- 'SVGPathSegList': PathSegList,
- 'SVGPathSegMovetoAbs': PathSegMovetoAbs,
- 'SVGPathSegMovetoRel': PathSegMovetoRel,
- 'SVGPatternElement': PatternElement,
- 'SVGPoint': Point,
- 'SVGPointList': PointList,
- 'SVGPolygonElement': PolygonElement,
- 'SVGPolylineElement': PolylineElement,
- 'SVGPreserveAspectRatio': PreserveAspectRatio,
- 'SVGRadialGradientElement': RadialGradientElement,
- 'SVGRect': Rect,
- 'SVGRectElement': RectElement,
- 'SVGRenderingIntent': RenderingIntent,
- 'SVGSVGElement': SvgSvgElement,
- 'SVGScriptElement': ScriptElement,
- 'SVGSetElement': SetElement,
- 'SVGStopElement': StopElement,
- 'SVGStringList': StringList,
- 'SVGStyleElement': StyleElement,
- 'SVGSwitchElement': SwitchElement,
- 'SVGSymbolElement': SymbolElement,
- 'SVGTSpanElement': TSpanElement,
- 'SVGTests': Tests,
- 'SVGTextContentElement': TextContentElement,
- 'SVGTextElement': TextElement,
- 'SVGTextPathElement': TextPathElement,
- 'SVGTextPositioningElement': TextPositioningElement,
- 'SVGTitleElement': TitleElement,
- 'SVGTransform': Transform,
- 'SVGTransformList': TransformList,
- 'SVGURIReference': UriReference,
- 'SVGUnitTypes': UnitTypes,
- 'SVGUseElement': UseElement,
- 'SVGVKernElement': _SVGVKernElement,
- 'SVGViewElement': ViewElement,
- 'SVGViewSpec': ViewSpec,
- 'SVGZoomAndPan': ZoomAndPan,
- 'SVGZoomEvent': ZoomEvent,
+final svgBlinkMap = {
+ 'SVGAElement': () => AElement,
+ 'SVGAltGlyphDefElement': () => _SVGAltGlyphDefElement,
+ 'SVGAltGlyphElement': () => AltGlyphElement,
+ 'SVGAltGlyphItemElement': () => _SVGAltGlyphItemElement,
+ 'SVGAngle': () => Angle,
+ 'SVGAnimateElement': () => AnimateElement,
+ 'SVGAnimateMotionElement': () => AnimateMotionElement,
+ 'SVGAnimateTransformElement': () => AnimateTransformElement,
+ 'SVGAnimatedAngle': () => AnimatedAngle,
+ 'SVGAnimatedBoolean': () => AnimatedBoolean,
+ 'SVGAnimatedEnumeration': () => AnimatedEnumeration,
+ 'SVGAnimatedInteger': () => AnimatedInteger,
+ 'SVGAnimatedLength': () => AnimatedLength,
+ 'SVGAnimatedLengthList': () => AnimatedLengthList,
+ 'SVGAnimatedNumber': () => AnimatedNumber,
+ 'SVGAnimatedNumberList': () => AnimatedNumberList,
+ 'SVGAnimatedPreserveAspectRatio': () => AnimatedPreserveAspectRatio,
+ 'SVGAnimatedRect': () => AnimatedRect,
+ 'SVGAnimatedString': () => AnimatedString,
+ 'SVGAnimatedTransformList': () => AnimatedTransformList,
+ 'SVGAnimationElement': () => AnimationElement,
+ 'SVGCircleElement': () => CircleElement,
+ 'SVGClipPathElement': () => ClipPathElement,
+ 'SVGComponentTransferFunctionElement': () => _SVGComponentTransferFunctionElement,
+ 'SVGCursorElement': () => _SVGCursorElement,
+ 'SVGDefsElement': () => DefsElement,
+ 'SVGDescElement': () => DescElement,
+ 'SVGDiscardElement': () => DiscardElement,
+ 'SVGElement': () => SvgElement,
+ 'SVGElementInstance': () => ElementInstance,
+ 'SVGElementInstanceList': () => _ElementInstanceList,
+ 'SVGEllipseElement': () => EllipseElement,
+ 'SVGFEBlendElement': () => FEBlendElement,
+ 'SVGFEColorMatrixElement': () => FEColorMatrixElement,
+ 'SVGFEComponentTransferElement': () => FEComponentTransferElement,
+ 'SVGFECompositeElement': () => FECompositeElement,
+ 'SVGFEConvolveMatrixElement': () => FEConvolveMatrixElement,
+ 'SVGFEDiffuseLightingElement': () => FEDiffuseLightingElement,
+ 'SVGFEDisplacementMapElement': () => FEDisplacementMapElement,
+ 'SVGFEDistantLightElement': () => FEDistantLightElement,
+ 'SVGFEDropShadowElement': () => _SVGFEDropShadowElement,
+ 'SVGFEFloodElement': () => FEFloodElement,
+ 'SVGFEFuncAElement': () => FEFuncAElement,
+ 'SVGFEFuncBElement': () => FEFuncBElement,
+ 'SVGFEFuncGElement': () => FEFuncGElement,
+ 'SVGFEFuncRElement': () => FEFuncRElement,
+ 'SVGFEGaussianBlurElement': () => FEGaussianBlurElement,
+ 'SVGFEImageElement': () => FEImageElement,
+ 'SVGFEMergeElement': () => FEMergeElement,
+ 'SVGFEMergeNodeElement': () => FEMergeNodeElement,
+ 'SVGFEMorphologyElement': () => FEMorphologyElement,
+ 'SVGFEOffsetElement': () => FEOffsetElement,
+ 'SVGFEPointLightElement': () => FEPointLightElement,
+ 'SVGFESpecularLightingElement': () => FESpecularLightingElement,
+ 'SVGFESpotLightElement': () => FESpotLightElement,
+ 'SVGFETileElement': () => FETileElement,
+ 'SVGFETurbulenceElement': () => FETurbulenceElement,
+ 'SVGFilterElement': () => FilterElement,
+ 'SVGFilterPrimitiveStandardAttributes': () => FilterPrimitiveStandardAttributes,
+ 'SVGFitToViewBox': () => FitToViewBox,
+ 'SVGFontElement': () => _SVGFontElement,
+ 'SVGFontFaceElement': () => _SVGFontFaceElement,
+ 'SVGFontFaceFormatElement': () => _SVGFontFaceFormatElement,
+ 'SVGFontFaceNameElement': () => _SVGFontFaceNameElement,
+ 'SVGFontFaceSrcElement': () => _SVGFontFaceSrcElement,
+ 'SVGFontFaceUriElement': () => _SVGFontFaceUriElement,
+ 'SVGForeignObjectElement': () => ForeignObjectElement,
+ 'SVGGElement': () => GElement,
+ 'SVGGeometryElement': () => GeometryElement,
+ 'SVGGlyphElement': () => _SVGGlyphElement,
+ 'SVGGlyphRefElement': () => _SVGGlyphRefElement,
+ 'SVGGradientElement': () => _GradientElement,
+ 'SVGGraphicsElement': () => GraphicsElement,
+ 'SVGHKernElement': () => _SVGHKernElement,
+ 'SVGImageElement': () => ImageElement,
+ 'SVGLength': () => Length,
+ 'SVGLengthList': () => LengthList,
+ 'SVGLineElement': () => LineElement,
+ 'SVGLinearGradientElement': () => LinearGradientElement,
+ 'SVGMPathElement': () => _SVGMPathElement,
+ 'SVGMarkerElement': () => MarkerElement,
+ 'SVGMaskElement': () => MaskElement,
+ 'SVGMatrix': () => Matrix,
+ 'SVGMetadataElement': () => MetadataElement,
+ 'SVGMissingGlyphElement': () => _SVGMissingGlyphElement,
+ 'SVGNumber': () => Number,
+ 'SVGNumberList': () => NumberList,
+ 'SVGPathElement': () => PathElement,
+ 'SVGPathSeg': () => PathSeg,
+ 'SVGPathSegArcAbs': () => PathSegArcAbs,
+ 'SVGPathSegArcRel': () => PathSegArcRel,
+ 'SVGPathSegClosePath': () => PathSegClosePath,
+ 'SVGPathSegCurvetoCubicAbs': () => PathSegCurvetoCubicAbs,
+ 'SVGPathSegCurvetoCubicRel': () => PathSegCurvetoCubicRel,
+ 'SVGPathSegCurvetoCubicSmoothAbs': () => PathSegCurvetoCubicSmoothAbs,
+ 'SVGPathSegCurvetoCubicSmoothRel': () => PathSegCurvetoCubicSmoothRel,
+ 'SVGPathSegCurvetoQuadraticAbs': () => PathSegCurvetoQuadraticAbs,
+ 'SVGPathSegCurvetoQuadraticRel': () => PathSegCurvetoQuadraticRel,
+ 'SVGPathSegCurvetoQuadraticSmoothAbs': () => PathSegCurvetoQuadraticSmoothAbs,
+ 'SVGPathSegCurvetoQuadraticSmoothRel': () => PathSegCurvetoQuadraticSmoothRel,
+ 'SVGPathSegLinetoAbs': () => PathSegLinetoAbs,
+ 'SVGPathSegLinetoHorizontalAbs': () => PathSegLinetoHorizontalAbs,
+ 'SVGPathSegLinetoHorizontalRel': () => PathSegLinetoHorizontalRel,
+ 'SVGPathSegLinetoRel': () => PathSegLinetoRel,
+ 'SVGPathSegLinetoVerticalAbs': () => PathSegLinetoVerticalAbs,
+ 'SVGPathSegLinetoVerticalRel': () => PathSegLinetoVerticalRel,
+ 'SVGPathSegList': () => PathSegList,
+ 'SVGPathSegMovetoAbs': () => PathSegMovetoAbs,
+ 'SVGPathSegMovetoRel': () => PathSegMovetoRel,
+ 'SVGPatternElement': () => PatternElement,
+ 'SVGPoint': () => Point,
+ 'SVGPointList': () => PointList,
+ 'SVGPolygonElement': () => PolygonElement,
+ 'SVGPolylineElement': () => PolylineElement,
+ 'SVGPreserveAspectRatio': () => PreserveAspectRatio,
+ 'SVGRadialGradientElement': () => RadialGradientElement,
+ 'SVGRect': () => Rect,
+ 'SVGRectElement': () => RectElement,
+ 'SVGRenderingIntent': () => RenderingIntent,
+ 'SVGSVGElement': () => SvgSvgElement,
+ 'SVGScriptElement': () => ScriptElement,
+ 'SVGSetElement': () => SetElement,
+ 'SVGStopElement': () => StopElement,
+ 'SVGStringList': () => StringList,
+ 'SVGStyleElement': () => StyleElement,
+ 'SVGSwitchElement': () => SwitchElement,
+ 'SVGSymbolElement': () => SymbolElement,
+ 'SVGTSpanElement': () => TSpanElement,
+ 'SVGTests': () => Tests,
+ 'SVGTextContentElement': () => TextContentElement,
+ 'SVGTextElement': () => TextElement,
+ 'SVGTextPathElement': () => TextPathElement,
+ 'SVGTextPositioningElement': () => TextPositioningElement,
+ 'SVGTitleElement': () => TitleElement,
+ 'SVGTransform': () => Transform,
+ 'SVGTransformList': () => TransformList,
+ 'SVGURIReference': () => UriReference,
+ 'SVGUnitTypes': () => UnitTypes,
+ 'SVGUseElement': () => UseElement,
+ 'SVGVKernElement': () => _SVGVKernElement,
+ 'SVGViewElement': () => ViewElement,
+ 'SVGViewSpec': () => ViewSpec,
+ 'SVGZoomAndPan': () => ZoomAndPan,
+ 'SVGZoomEvent': () => ZoomEvent,
};
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698