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

Side by Side Diff: Source/core/layout/svg/LayoutSVGForeignObject.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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
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 12 matching lines...) Expand all
23 23
24 #include "core/layout/svg/LayoutSVGBlock.h" 24 #include "core/layout/svg/LayoutSVGBlock.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class SVGForeignObjectElement; 28 class SVGForeignObjectElement;
29 29
30 class LayoutSVGForeignObject final : public LayoutSVGBlock { 30 class LayoutSVGForeignObject final : public LayoutSVGBlock {
31 public: 31 public:
32 explicit LayoutSVGForeignObject(SVGForeignObjectElement*); 32 explicit LayoutSVGForeignObject(SVGForeignObjectElement*);
33 virtual ~LayoutSVGForeignObject(); 33 ~LayoutSVGForeignObject() override;
34 34
35 virtual const char* name() const override { return "LayoutSVGForeignObject"; } 35 const char* name() const override { return "LayoutSVGForeignObject"; }
36 36
37 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr ide; 37 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
38 38
39 virtual void paint(const PaintInfo&, const LayoutPoint&) override; 39 void paint(const PaintInfo&, const LayoutPoint&) override;
40 40
41 virtual void layout() override; 41 void layout() override;
42 42
43 virtual FloatRect objectBoundingBox() const override { return FloatRect(Floa tPoint(), m_viewport.size()); } 43 FloatRect objectBoundingBox() const override { return FloatRect(FloatPoint() , m_viewport.size()); }
44 virtual FloatRect strokeBoundingBox() const override { return FloatRect(Floa tPoint(), m_viewport.size()); } 44 FloatRect strokeBoundingBox() const override { return FloatRect(FloatPoint() , m_viewport.size()); }
45 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override { return FloatRect(FloatPoint(), m_viewport.size()); } 45 FloatRect paintInvalidationRectInLocalCoordinates() const override { return FloatRect(FloatPoint(), m_viewport.size()); }
46 46
47 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen t, HitTestAction) override; 47 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) override;
48 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVGForeignObject || LayoutSVGBlock::isOfType(type); } 48 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVGForeignObject || LayoutSVGBlock::isOfType(type); }
49 49
50 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t rue; } 50 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
51 51
52 FloatRect viewportRect() { return m_viewport; } 52 FloatRect viewportRect() { return m_viewport; }
53 53
54 private: 54 private:
55 virtual void updateLogicalWidth() override; 55 void updateLogicalWidth() override;
56 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override; 56 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, L ogicalExtentComputedValues&) const override;
57 57
58 virtual const AffineTransform& localToParentTransform() const override; 58 const AffineTransform& localToParentTransform() const override;
59 59
60 bool m_needsTransformUpdate : 1; 60 bool m_needsTransformUpdate : 1;
61 FloatRect m_viewport; 61 FloatRect m_viewport;
62 mutable AffineTransform m_localToParentTransform; 62 mutable AffineTransform m_localToParentTransform;
63 }; 63 };
64 64
65 } 65 }
66 66
67 #endif 67 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGEllipse.h ('k') | Source/core/layout/svg/LayoutSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698