OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "bindings/core/v8/V8SVGPathSegLinetoAbs.h" | 46 #include "bindings/core/v8/V8SVGPathSegLinetoAbs.h" |
47 #include "bindings/core/v8/V8SVGPathSegLinetoHorizontalAbs.h" | 47 #include "bindings/core/v8/V8SVGPathSegLinetoHorizontalAbs.h" |
48 #include "bindings/core/v8/V8SVGPathSegLinetoHorizontalRel.h" | 48 #include "bindings/core/v8/V8SVGPathSegLinetoHorizontalRel.h" |
49 #include "bindings/core/v8/V8SVGPathSegLinetoRel.h" | 49 #include "bindings/core/v8/V8SVGPathSegLinetoRel.h" |
50 #include "bindings/core/v8/V8SVGPathSegLinetoVerticalAbs.h" | 50 #include "bindings/core/v8/V8SVGPathSegLinetoVerticalAbs.h" |
51 #include "bindings/core/v8/V8SVGPathSegLinetoVerticalRel.h" | 51 #include "bindings/core/v8/V8SVGPathSegLinetoVerticalRel.h" |
52 #include "bindings/core/v8/V8SVGPathSegMovetoAbs.h" | 52 #include "bindings/core/v8/V8SVGPathSegMovetoAbs.h" |
53 #include "bindings/core/v8/V8SVGPathSegMovetoRel.h" | 53 #include "bindings/core/v8/V8SVGPathSegMovetoRel.h" |
54 #include "bindings/core/v8/V8Window.h" | 54 #include "bindings/core/v8/V8Window.h" |
55 | 55 |
56 namespace WebCore { | 56 namespace blink { |
57 | 57 |
58 v8::Handle<v8::Object> wrap(SVGPathSeg* impl, v8::Handle<v8::Object> creationCon
text, v8::Isolate* isolate) | 58 v8::Handle<v8::Object> wrap(SVGPathSeg* impl, v8::Handle<v8::Object> creationCon
text, v8::Isolate* isolate) |
59 { | 59 { |
60 ASSERT(impl); | 60 ASSERT(impl); |
61 switch (impl->pathSegType()) { | 61 switch (impl->pathSegType()) { |
62 case SVGPathSeg::PATHSEG_CLOSEPATH: | 62 case SVGPathSeg::PATHSEG_CLOSEPATH: |
63 return wrap(static_cast<SVGPathSegClosePath*>(impl), creationContext, is
olate); | 63 return wrap(static_cast<SVGPathSegClosePath*>(impl), creationContext, is
olate); |
64 case SVGPathSeg::PATHSEG_MOVETO_ABS: | 64 case SVGPathSeg::PATHSEG_MOVETO_ABS: |
65 return wrap(static_cast<SVGPathSegMovetoAbs*>(impl), creationContext, is
olate); | 65 return wrap(static_cast<SVGPathSegMovetoAbs*>(impl), creationContext, is
olate); |
66 case SVGPathSeg::PATHSEG_MOVETO_REL: | 66 case SVGPathSeg::PATHSEG_MOVETO_REL: |
(...skipping 28 matching lines...) Expand all Loading... |
95 return wrap(static_cast<SVGPathSegCurvetoCubicSmoothRel*>(impl), creatio
nContext, isolate); | 95 return wrap(static_cast<SVGPathSegCurvetoCubicSmoothRel*>(impl), creatio
nContext, isolate); |
96 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: | 96 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: |
97 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothAbs*>(impl), cre
ationContext, isolate); | 97 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothAbs*>(impl), cre
ationContext, isolate); |
98 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: | 98 case SVGPathSeg::PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: |
99 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothRel*>(impl), cre
ationContext, isolate); | 99 return wrap(static_cast<SVGPathSegCurvetoQuadraticSmoothRel*>(impl), cre
ationContext, isolate); |
100 } | 100 } |
101 ASSERT_NOT_REACHED(); | 101 ASSERT_NOT_REACHED(); |
102 return V8SVGPathSeg::createWrapper(impl, creationContext, isolate); | 102 return V8SVGPathSeg::createWrapper(impl, creationContext, isolate); |
103 } | 103 } |
104 | 104 |
105 } // namespace WebCore | 105 } // namespace blink |
OLD | NEW |