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

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

Issue 2086583004: Common up SVG transform "change detection" (classification) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Google, Inc. 3 * Copyright (C) 2009 Google, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 22 matching lines...) Expand all
33 33
34 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 34 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
35 35
36 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVGTransformableContainer || LayoutSVGContainer::isOfType(type); } 36 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVGTransformableContainer || LayoutSVGContainer::isOfType(type); }
37 const AffineTransform& localToSVGParentTransform() const override { return m _localTransform; } 37 const AffineTransform& localToSVGParentTransform() const override { return m _localTransform; }
38 const FloatSize& additionalTranslation() const { return m_additionalTranslat ion; } 38 const FloatSize& additionalTranslation() const { return m_additionalTranslat ion; }
39 39
40 void setNeedsTransformUpdate() override; 40 void setNeedsTransformUpdate() override;
41 41
42 private: 42 private:
43 TransformChange calculateLocalTransform() override; 43 SVGTransformChange calculateLocalTransform() override;
44 AffineTransform localSVGTransform() const override { return m_localTransform ; } 44 AffineTransform localSVGTransform() const override { return m_localTransform ; }
45 45
46 bool m_needsTransformUpdate : 1; 46 bool m_needsTransformUpdate : 1;
47 AffineTransform m_localTransform; 47 AffineTransform m_localTransform;
48 FloatSize m_additionalTranslation; 48 FloatSize m_additionalTranslation;
49 }; 49 };
50 50
51 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransforma bleContainer()); 51 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransforma bleContainer());
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // LayoutSVGTransformableContainer_h 55 #endif // LayoutSVGTransformableContainer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698