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

Side by Side Diff: Source/core/rendering/svg/RenderSVGForeignObject.h

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 years, 2 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) 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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef RenderSVGForeignObject_h 21 #ifndef RenderSVGForeignObject_h
22 #define RenderSVGForeignObject_h 22 #define RenderSVGForeignObject_h
23 23
24 #include "core/rendering/svg/RenderSVGBlock.h" 24 #include "core/rendering/svg/RenderSVGBlock.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class SVGForeignObjectElement; 28 class SVGForeignObjectElement;
29 29
30 class RenderSVGForeignObject FINAL : public RenderSVGBlock { 30 class RenderSVGForeignObject final : public RenderSVGBlock {
31 public: 31 public:
32 explicit RenderSVGForeignObject(SVGForeignObjectElement*); 32 explicit RenderSVGForeignObject(SVGForeignObjectElement*);
33 virtual ~RenderSVGForeignObject(); 33 virtual ~RenderSVGForeignObject();
34 34
35 virtual const char* renderName() const OVERRIDE { return "RenderSVGForeignOb ject"; } 35 virtual const char* renderName() const override { return "RenderSVGForeignOb ject"; }
36 36
37 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; 37 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override;
38 38
39 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 39 virtual void paint(PaintInfo&, const LayoutPoint&) override;
40 40
41 virtual void layout() OVERRIDE; 41 virtual void layout() override;
42 42
43 virtual FloatRect objectBoundingBox() const OVERRIDE { return FloatRect(Floa tPoint(), m_viewport.size()); } 43 virtual FloatRect objectBoundingBox() const override { return FloatRect(Floa tPoint(), m_viewport.size()); }
44 virtual FloatRect strokeBoundingBox() const OVERRIDE { return FloatRect(Floa tPoint(), m_viewport.size()); } 44 virtual FloatRect strokeBoundingBox() const override { return FloatRect(Floa tPoint(), m_viewport.size()); }
45 virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE { return FloatRect(FloatPoint(), m_viewport.size()); } 45 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override { return FloatRect(FloatPoint(), m_viewport.size()); }
46 46
47 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const O VERRIDE; 47 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
48 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) OVERRIDE; 48 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F loatPoint& pointInParent, HitTestAction) override;
49 virtual bool isSVGForeignObject() const OVERRIDE { return true; } 49 virtual bool isSVGForeignObject() const override { return true; }
50 50
51 virtual void setNeedsTransformUpdate() OVERRIDE { m_needsTransformUpdate = t rue; } 51 virtual void setNeedsTransformUpdate() override { m_needsTransformUpdate = t rue; }
52 52
53 FloatRect viewportRect() { return m_viewport; } 53 FloatRect viewportRect() { return m_viewport; }
54 54
55 private: 55 private:
56 virtual void updateLogicalWidth() OVERRIDE; 56 virtual void updateLogicalWidth() override;
57 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 57 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override;
58 58
59 virtual const AffineTransform& localToParentTransform() const OVERRIDE; 59 virtual const AffineTransform& localToParentTransform() const override;
60 60
61 bool m_needsTransformUpdate : 1; 61 bool m_needsTransformUpdate : 1;
62 FloatRect m_viewport; 62 FloatRect m_viewport;
63 mutable AffineTransform m_localToParentTransform; 63 mutable AffineTransform m_localToParentTransform;
64 }; 64 };
65 65
66 } 66 }
67 67
68 #endif 68 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGEllipse.h ('k') | Source/core/rendering/svg/RenderSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698