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

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: 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) 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 enum ApplyMotionTransform { ExcludeMotionTransform, IncludeMotionTransform };
78 bool hasTransform(ApplyMotionTransform) const;
79 AffineTransform calculateTransform(ApplyMotionTransform) const;
80
77 enum CTMScope { 81 enum CTMScope {
78 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() 82 NearestViewportScope, // Used by SVGGraphicsElement::getCTM()
79 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM() 83 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM()
80 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() 84 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List()
81 }; 85 };
82 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; 86 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const;
83 virtual bool needsPendingResourceHandling() const { return true; } 87 virtual bool needsPendingResourceHandling() const { return true; }
84 88
85 bool instanceUpdatesBlocked() const; 89 bool instanceUpdatesBlocked() const;
86 void setInstanceUpdatesBlocked(bool); 90 void setInstanceUpdatesBlocked(bool);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ 348 inline bool isElementOfType<const thisType>(const SVGElement& element) { \
345 return is##thisType(element); \ 349 return is##thisType(element); \
346 } \ 350 } \
347 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 351 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
348 352
349 } // namespace blink 353 } // namespace blink
350 354
351 #include "core/SVGElementTypeHelpers.h" 355 #include "core/SVGElementTypeHelpers.h"
352 356
353 #endif // SVGElement_h 357 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedTypeAnimator.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