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

Side by Side Diff: Source/core/layout/svg/LayoutSVGInline.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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGImage.h ('k') | Source/core/layout/svg/LayoutSVGInlineText.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Computer Inc. 3 * Copyright (C) 2006 Apple Computer 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 11 matching lines...) Expand all
22 #define LayoutSVGInline_h 22 #define LayoutSVGInline_h
23 23
24 #include "core/layout/LayoutInline.h" 24 #include "core/layout/LayoutInline.h"
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class LayoutSVGInline : public LayoutInline { 28 class LayoutSVGInline : public LayoutInline {
29 public: 29 public:
30 explicit LayoutSVGInline(Element*); 30 explicit LayoutSVGInline(Element*);
31 31
32 virtual const char* name() const override { return "LayoutSVGInline"; } 32 const char* name() const override { return "LayoutSVGInline"; }
33 virtual DeprecatedPaintLayerType layerTypeRequired() const override final { return NoDeprecatedPaintLayer; } 33 DeprecatedPaintLayerType layerTypeRequired() const final { return NoDeprecat edPaintLayer; }
34 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVG || type == LayoutObjectSVGInline || LayoutInline::isOfType(type ); } 34 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || type == LayoutObjectSVGInline || LayoutInline::isOfType(type); }
35 35
36 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr ide; 36 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
37 37
38 // Chapter 10.4 of the SVG Specification say that we should use the 38 // Chapter 10.4 of the SVG Specification say that we should use the
39 // object bounding box of the parent text element. 39 // object bounding box of the parent text element.
40 // We search for the root text element and take its bounding box. 40 // We search for the root text element and take its bounding box.
41 // It is also necessary to take the stroke and paint invalidation rect of 41 // It is also necessary to take the stroke and paint invalidation rect of
42 // this element, since we need it for filters. 42 // this element, since we need it for filters.
43 virtual FloatRect objectBoundingBox() const override final; 43 FloatRect objectBoundingBox() const final;
44 virtual FloatRect strokeBoundingBox() const override final; 44 FloatRect strokeBoundingBox() const final;
45 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override f inal; 45 FloatRect paintInvalidationRectInLocalCoordinates() const final;
46 46
47 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const override final; 47 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const fi nal;
48 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = nullptr, const PaintInvalidationState* = nullptr) const override final; 48 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const PaintInvalidationState* = nullptr) const final;
49 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override final; 49 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const final;
50 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid e final; 50 void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const final;
51 51
52 private: 52 private:
53 virtual InlineFlowBox* createInlineFlowBox() override final; 53 InlineFlowBox* createInlineFlowBox() final;
54 54
55 virtual void willBeDestroyed() override final; 55 void willBeDestroyed() final;
56 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override final; 56 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
57 57
58 virtual void addChild(LayoutObject* child, LayoutObject* beforeChild = nullp tr) override final; 58 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) fina l;
59 virtual void removeChild(LayoutObject*) override final; 59 void removeChild(LayoutObject*) final;
60 }; 60 };
61 61
62 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInline, isSVGInline()); 62 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInline, isSVGInline());
63 63
64 } 64 }
65 65
66 #endif // LayoutSVGInline_H 66 #endif // LayoutSVGInline_H
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGImage.h ('k') | Source/core/layout/svg/LayoutSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698