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

Side by Side Diff: Source/core/svg/SVGGraphicsElement.h

Issue 701433002: Lazily allocate svg shape transforms, shrink RenderSVGShape by 44B (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address reviewer comments Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2014 Google, Inc. 4 * Copyright (C) 2014 Google, Inc.
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate); 44 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate);
45 PassRefPtr<SVGMatrixTearOff> getCTMFromJavascript(); 45 PassRefPtr<SVGMatrixTearOff> getCTMFromJavascript();
46 PassRefPtr<SVGMatrixTearOff> getScreenCTMFromJavascript(); 46 PassRefPtr<SVGMatrixTearOff> getScreenCTMFromJavascript();
47 47
48 PassRefPtr<SVGMatrixTearOff> getTransformToElement(SVGElement*, ExceptionSta te&); 48 PassRefPtr<SVGMatrixTearOff> getTransformToElement(SVGElement*, ExceptionSta te&);
49 49
50 SVGElement* nearestViewportElement() const; 50 SVGElement* nearestViewportElement() const;
51 SVGElement* farthestViewportElement() const; 51 SVGElement* farthestViewportElement() const;
52 52
53 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const override { return calculateAnimatedLocalTransform(); } 53 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const override { return calculateAnimatedLocalTransform(); }
54 bool hasAnimatedLocalTransform() const;
54 AffineTransform calculateAnimatedLocalTransform() const; 55 AffineTransform calculateAnimatedLocalTransform() const;
55 virtual AffineTransform* animateMotionTransform() override; 56 virtual AffineTransform* animateMotionTransform() override;
56 57
57 virtual FloatRect getBBox(); 58 virtual FloatRect getBBox();
58 PassRefPtr<SVGRectTearOff> getBBoxFromJavascript(); 59 PassRefPtr<SVGRectTearOff> getBBoxFromJavascript();
59 60
60 // "base class" methods for all the elements which render as paths 61 // "base class" methods for all the elements which render as paths
61 virtual void toClipPath(Path&); 62 virtual void toClipPath(Path&);
62 virtual RenderObject* createRenderer(RenderStyle*) override; 63 virtual RenderObject* createRenderer(RenderStyle*) override;
63 64
(...skipping 23 matching lines...) Expand all
87 inline bool isSVGGraphicsElement(const SVGElement& element) 88 inline bool isSVGGraphicsElement(const SVGElement& element)
88 { 89 {
89 return element.isSVGGraphicsElement(); 90 return element.isSVGGraphicsElement();
90 } 91 }
91 92
92 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); 93 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement);
93 94
94 } // namespace blink 95 } // namespace blink
95 96
96 #endif // SVGGraphicsElement_h 97 #endif // SVGGraphicsElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698