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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 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) 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 unsigned repeatCount, 67 unsigned repeatCount,
68 SVGPropertyBase* fromValue, 68 SVGPropertyBase* fromValue,
69 SVGPropertyBase* toValue, 69 SVGPropertyBase* toValue,
70 SVGPropertyBase* toAtEndOfDurationValue, 70 SVGPropertyBase* toAtEndOfDurationValue,
71 SVGElement*) override; 71 SVGElement*) override;
72 float calculateDistance(SVGPropertyBase* to, SVGElement*) override; 72 float calculateDistance(SVGPropertyBase* to, SVGElement*) override;
73 73
74 static AnimatedPropertyType classType() { return AnimatedTransformList; } 74 static AnimatedPropertyType classType() { return AnimatedTransformList; }
75 AnimatedPropertyType type() const override { return classType(); } 75 AnimatedPropertyType type() const override { return classType(); }
76 76
77 const CSSValue* cssValue() const;
78
77 private: 79 private:
78 SVGTransformList(); 80 SVGTransformList();
79 81
80 template <typename CharType> 82 template <typename CharType>
81 SVGParsingError parseInternal(const CharType*& ptr, const CharType* end); 83 SVGParsingError parseInternal(const CharType*& ptr, const CharType* end);
82 }; 84 };
83 85
84 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGTransformList); 86 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGTransformList);
85 87
86 SVGTransformType parseTransformType(const String&); 88 SVGTransformType parseTransformType(const String&);
87 89
88 } // namespace blink 90 } // namespace blink
89 91
90 #endif // SVGTransformList_h 92 #endif // SVGTransformList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698