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

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

Issue 1481123002: Use SVGLength's wrapped CSSPrimitiveValue for pres.attr. style (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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> propertyFromAttribute(const QualifiedName& attributeName); 103 PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> propertyFromAttribute(const QualifiedName& attributeName);
104 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif iedName& attributeName); 104 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif iedName& attributeName);
105 105
106 void sendSVGLoadEventToSelfAndAncestorChainIfPossible(); 106 void sendSVGLoadEventToSelfAndAncestorChainIfPossible();
107 bool sendSVGLoadEventIfPossible(); 107 bool sendSVGLoadEventIfPossible();
108 108
109 virtual AffineTransform* animateMotionTransform() { return nullptr; } 109 virtual AffineTransform* animateMotionTransform() { return nullptr; }
110 110
111 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; } 111 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; }
112 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m _presentationAttributeStyleIsDirty = true; } 112 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m _presentationAttributeStyleIsDirty = true; }
113 void addSVGLengthPropertyToPresentationAttributeStyle(MutableStylePropertySe t*, CSSPropertyID, SVGLength&);
114 113
115 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& instancesForEle ment() const; 114 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& instancesForEle ment() const;
116 void mapInstanceToElement(SVGElement*); 115 void mapInstanceToElement(SVGElement*);
117 void removeInstanceMapping(SVGElement*); 116 void removeInstanceMapping(SVGElement*);
118 117
119 void setCursorElement(SVGCursorElement*); 118 void setCursorElement(SVGCursorElement*);
120 void setCursorImageValue(CSSCursorImageValue*); 119 void setCursorImageValue(CSSCursorImageValue*);
121 120
122 #if !ENABLE(OILPAN) 121 #if !ENABLE(OILPAN)
123 void cursorElementRemoved(); 122 void cursorElementRemoved();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \ 278 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \
280 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \ 279 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \
281 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 280 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
282 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 281 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
283 282
284 } // namespace blink 283 } // namespace blink
285 284
286 #include "core/SVGElementTypeHelpers.h" 285 #include "core/SVGElementTypeHelpers.h"
287 286
288 #endif // SVGElement_h 287 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGCircleElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698