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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPreserveAspectRatioTearOff.h

Issue 2912663002: Clean up creation of "detached" SVG* data type objects (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 enum { 72 enum {
73 kSvgMeetorsliceUnknown = SVGPreserveAspectRatio::kSvgMeetorsliceUnknown, 73 kSvgMeetorsliceUnknown = SVGPreserveAspectRatio::kSvgMeetorsliceUnknown,
74 kSvgMeetorsliceMeet = SVGPreserveAspectRatio::kSvgMeetorsliceMeet, 74 kSvgMeetorsliceMeet = SVGPreserveAspectRatio::kSvgMeetorsliceMeet,
75 kSvgMeetorsliceSlice = SVGPreserveAspectRatio::kSvgMeetorsliceSlice 75 kSvgMeetorsliceSlice = SVGPreserveAspectRatio::kSvgMeetorsliceSlice
76 }; 76 };
77 77
78 static SVGPreserveAspectRatioTearOff* Create( 78 static SVGPreserveAspectRatioTearOff* Create(
79 SVGPreserveAspectRatio* target, 79 SVGPreserveAspectRatio* target,
80 SVGElement* context_element, 80 SVGElement* context_element,
81 PropertyIsAnimValType property_is_anim_val, 81 PropertyIsAnimValType property_is_anim_val,
82 const QualifiedName& attribute_name = QualifiedName::Null()) { 82 const QualifiedName& attribute_name) {
83 return new SVGPreserveAspectRatioTearOff( 83 return new SVGPreserveAspectRatioTearOff(
84 target, context_element, property_is_anim_val, attribute_name); 84 target, context_element, property_is_anim_val, attribute_name);
85 } 85 }
86 86
87 void setAlign(unsigned short, ExceptionState&); 87 void setAlign(unsigned short, ExceptionState&);
88 unsigned short align() { return Target()->Align(); } 88 unsigned short align() { return Target()->Align(); }
89 void setMeetOrSlice(unsigned short, ExceptionState&); 89 void setMeetOrSlice(unsigned short, ExceptionState&);
90 unsigned short meetOrSlice() { return Target()->MeetOrSlice(); } 90 unsigned short meetOrSlice() { return Target()->MeetOrSlice(); }
91 91
92 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 92 DECLARE_VIRTUAL_TRACE_WRAPPERS();
93 93
94 private: 94 private:
95 SVGPreserveAspectRatioTearOff( 95 SVGPreserveAspectRatioTearOff(SVGPreserveAspectRatio*,
96 SVGPreserveAspectRatio*, 96 SVGElement* context_element,
97 SVGElement* context_element, 97 PropertyIsAnimValType,
98 PropertyIsAnimValType, 98 const QualifiedName& attribute_name);
99 const QualifiedName& attribute_name = QualifiedName::Null());
100 }; 99 };
101 100
102 } // namespace blink 101 } // namespace blink
103 102
104 #endif // SVGPreserveAspectRatioTearOff_h 103 #endif // SVGPreserveAspectRatioTearOff_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPointTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGRectTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698