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

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

Issue 1904683002: Move the m_didTransformToRootUpdate flag to LayoutSVGContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 20 matching lines...) Expand all
31 public: 31 public:
32 explicit LayoutSVGTransformableContainer(SVGGraphicsElement*); 32 explicit LayoutSVGTransformableContainer(SVGGraphicsElement*);
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 { m_needsTransformUpdate = true; } 40 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
41 bool didTransformToRootUpdate() const override { return m_didTransformToRoot Update; }
42 41
43 private: 42 private:
44 bool calculateLocalTransform() override; 43 bool calculateLocalTransform() override;
45 AffineTransform localSVGTransform() const override { return m_localTransform ; } 44 AffineTransform localSVGTransform() const override { return m_localTransform ; }
46 45
47 bool m_needsTransformUpdate : 1; 46 bool m_needsTransformUpdate : 1;
48 bool m_didTransformToRootUpdate : 1;
49 AffineTransform m_localTransform; 47 AffineTransform m_localTransform;
50 FloatSize m_additionalTranslation; 48 FloatSize m_additionalTranslation;
51 }; 49 };
52 50
53 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransforma bleContainer()); 51 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGTransformableContainer, isSVGTransforma bleContainer());
54 52
55 } // namespace blink 53 } // namespace blink
56 54
57 #endif // LayoutSVGTransformableContainer_h 55 #endif // LayoutSVGTransformableContainer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698