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

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

Issue 2711503002: Compute a more correct "screen scope" transform for SVGSVGElement (Closed)
Patch Set: Tweak test Created 3 years, 10 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) 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }; 77 enum ApplyMotionTransform { ExcludeMotionTransform, IncludeMotionTransform };
78 bool hasTransform(ApplyMotionTransform) const; 78 bool hasTransform(ApplyMotionTransform) const;
79 AffineTransform calculateTransform(ApplyMotionTransform) const; 79 AffineTransform calculateTransform(ApplyMotionTransform) const;
80 80
81 enum CTMScope { 81 enum CTMScope {
82 NearestViewportScope, // Used by SVGGraphicsElement::getCTM() 82 NearestViewportScope, // Used by SVGGraphicsElement::getCTM()
83 ScreenScope, // Used by SVGGraphicsElement::getScreenCTM()
84 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List() 83 AncestorScope // Used by SVGSVGElement::get{Enclosure|Intersection}List()
85 }; 84 };
86 virtual AffineTransform localCoordinateSpaceTransform(CTMScope) const; 85 virtual AffineTransform localCoordinateSpaceTransform() const;
87 virtual bool needsPendingResourceHandling() const { return true; } 86 virtual bool needsPendingResourceHandling() const { return true; }
88 87
89 bool instanceUpdatesBlocked() const; 88 bool instanceUpdatesBlocked() const;
90 void setInstanceUpdatesBlocked(bool); 89 void setInstanceUpdatesBlocked(bool);
91 90
92 // Records the SVG element as having a Web Animation on an SVG attribute that 91 // Records the SVG element as having a Web Animation on an SVG attribute that
93 // needs applying. 92 // needs applying.
94 void setWebAnimationsPending(); 93 void setWebAnimationsPending();
95 void applyActiveWebAnimations(); 94 void applyActiveWebAnimations();
96 95
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 inline bool isElementOfType<const thisType>(const SVGElement& element) { \ 336 inline bool isElementOfType<const thisType>(const SVGElement& element) { \
338 return is##thisType(element); \ 337 return is##thisType(element); \
339 } \ 338 } \
340 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 339 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
341 340
342 } // namespace blink 341 } // namespace blink
343 342
344 #include "core/SVGElementTypeHelpers.h" 343 #include "core/SVGElementTypeHelpers.h"
345 344
346 #endif // SVGElement_h 345 #endif // SVGElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698