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

Side by Side Diff: Source/core/layout/svg/LayoutSVGViewportContainer.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Google, Inc. 4 * Copyright (C) 2009 Google, Inc.
5 * Copyright (C) 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 17 matching lines...) Expand all
28 namespace blink { 28 namespace blink {
29 29
30 // This is used for non-root <svg> elements and <marker> elements, neither of wh ich are SVGTransformable 30 // This is used for non-root <svg> elements and <marker> elements, neither of wh ich are SVGTransformable
31 // thus we inherit from LayoutSVGContainer instead of LayoutSVGTransformableCont ainer 31 // thus we inherit from LayoutSVGContainer instead of LayoutSVGTransformableCont ainer
32 class LayoutSVGViewportContainer final : public LayoutSVGContainer { 32 class LayoutSVGViewportContainer final : public LayoutSVGContainer {
33 public: 33 public:
34 explicit LayoutSVGViewportContainer(SVGElement*); 34 explicit LayoutSVGViewportContainer(SVGElement*);
35 FloatRect viewport() const { return m_viewport; } 35 FloatRect viewport() const { return m_viewport; }
36 36
37 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } 37 bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; }
38 virtual bool didTransformToRootUpdate() override { return m_didTransformToRo otUpdate; } 38 bool didTransformToRootUpdate() override { return m_didTransformToRootUpdate ; }
39 39
40 virtual void determineIfLayoutSizeChanged() override; 40 void determineIfLayoutSizeChanged() override;
41 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t rue; } 41 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
42 42
43 virtual void paint(const PaintInfo&, const LayoutPoint&) override; 43 void paint(const PaintInfo&, const LayoutPoint&) override;
44 44
45 virtual const char* name() const override { return "LayoutSVGViewportContain er"; } 45 const char* name() const override { return "LayoutSVGViewportContainer"; }
46 46
47 private: 47 private:
48 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGViewportContainer || LayoutSVGContainer::isOfType(type); } 48 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVGViewportContainer || LayoutSVGContainer::isOfType(type); }
49 49
50 AffineTransform viewportTransform() const; 50 AffineTransform viewportTransform() const;
51 virtual const AffineTransform& localToParentTransform() const override { ret urn m_localToParentTransform; } 51 const AffineTransform& localToParentTransform() const override { return m_lo calToParentTransform; }
52 52
53 virtual void calcViewport() override; 53 void calcViewport() override;
54 virtual bool calculateLocalTransform() override; 54 bool calculateLocalTransform() override;
55 55
56 virtual bool pointIsInsideViewportClip(const FloatPoint& pointInParent) over ride; 56 bool pointIsInsideViewportClip(const FloatPoint& pointInParent) override;
57 57
58 FloatRect m_viewport; 58 FloatRect m_viewport;
59 mutable AffineTransform m_localToParentTransform; 59 mutable AffineTransform m_localToParentTransform;
60 bool m_didTransformToRootUpdate : 1; 60 bool m_didTransformToRootUpdate : 1;
61 bool m_isLayoutSizeChanged : 1; 61 bool m_isLayoutSizeChanged : 1;
62 bool m_needsTransformUpdate : 1; 62 bool m_needsTransformUpdate : 1;
63 }; 63 };
64 64
65 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGViewportContainer, isSVGViewportContain er()); 65 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGViewportContainer, isSVGViewportContain er());
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // LayoutSVGViewportContainer_h 69 #endif // LayoutSVGViewportContainer_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGTransformableContainer.h ('k') | Source/core/layout/svg/line/SVGInlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698