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

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

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Updated expectations Created 4 years, 1 month 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool hasTagName(const SVGQualifiedName& name) const { 67 bool hasTagName(const SVGQualifiedName& name) const {
68 return hasLocalName(name.localName()); 68 return hasLocalName(name.localName());
69 } 69 }
70 70
71 String title() const override; 71 String title() const override;
72 bool hasRelativeLengths() const { 72 bool hasRelativeLengths() const {
73 return !m_elementsWithRelativeLengths.isEmpty(); 73 return !m_elementsWithRelativeLengths.isEmpty();
74 } 74 }
75 static bool isAnimatableCSSProperty(const QualifiedName&); 75 static bool isAnimatableCSSProperty(const QualifiedName&);
76 76
77 bool hasTransform() const;
pdr. 2016/11/22 04:02:48 hasTransform and hasAnimatedLocalTransform are pre
fs 2016/11/22 13:54:07 I guess we could consider renaming the "...Animate
fs 2016/11/22 14:01:24 (Appears I mistakenly thought one of the "...Anima
fs 2016/11/22 14:54:35 PS8 contains something along the lines of the latt
78 AffineTransform calculateTransform() const;
79
77 enum CTMScope { 80 enum CTMScope {
78 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() 81 NearestViewportScope, // Used by SVGGraphicsElement::getCTM()
79 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() 82 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM()
80 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() 83 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List()
81 }; 84 };
82 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; 85 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const;
83 virtual bool needsPendingResourceHandling() const { return true; } 86 virtual bool needsPendingResourceHandling() const { return true; }
84 87
85 bool instanceUpdatesBlocked() const; 88 bool instanceUpdatesBlocked() const;
86 void setInstanceUpdatesBlocked(bool); 89 void setInstanceUpdatesBlocked(bool);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ 347 inline bool isElementOfType<const thisType>(const SVGElement& element) { \
345 return is##thisType(element); \ 348 return is##thisType(element); \
346 } \ 349 } \
347 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 350 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
348 351
349 } // namespace blink 352 } // namespace blink
350 353
351 #include "core/SVGElementTypeHelpers.h" 354 #include "core/SVGElementTypeHelpers.h"
352 355
353 #endif // SVGElement_h 356 #endif // SVGElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698