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

Side by Side Diff: Source/core/layout/svg/LayoutSVGGradientStop.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) 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 14 matching lines...) Expand all
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class SVGGradientElement; 28 class SVGGradientElement;
29 class SVGStopElement; 29 class SVGStopElement;
30 30
31 // This class exists mostly so we can hear about gradient stop style changes 31 // This class exists mostly so we can hear about gradient stop style changes
32 class LayoutSVGGradientStop final : public LayoutObject { 32 class LayoutSVGGradientStop final : public LayoutObject {
33 public: 33 public:
34 explicit LayoutSVGGradientStop(SVGStopElement*); 34 explicit LayoutSVGGradientStop(SVGStopElement*);
35 virtual ~LayoutSVGGradientStop(); 35 ~LayoutSVGGradientStop() override;
36 36
37 virtual const char* name() const override { return "LayoutSVGGradientStop"; } 37 const char* name() const override { return "LayoutSVGGradientStop"; }
38 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSVG || type == LayoutObjectSVGGradientStop || LayoutObject::isOfTyp e(type); } 38 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVG || type == LayoutObjectSVGGradientStop || LayoutObject::isOfType(type); }
39 39
40 virtual void layout() override; 40 void layout() override;
41 41
42 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg> 42 // This overrides are needed to prevent ASSERTs on <svg><stop /></svg>
43 // LayoutObject's default implementations ASSERT_NOT_REACHED() 43 // LayoutObject's default implementations ASSERT_NOT_REACHED()
44 // https://bugs.webkit.org/show_bug.cgi?id=20400 44 // https://bugs.webkit.org/show_bug.cgi?id=20400
45 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject*, const PaintInvalidationState* = nullptr) const override { return Lay outRect(); } 45 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t*, const PaintInvalidationState* = nullptr) const override { return LayoutRect( ); }
46 virtual FloatRect objectBoundingBox() const override { return FloatRect(); } 46 FloatRect objectBoundingBox() const override { return FloatRect(); }
47 virtual FloatRect strokeBoundingBox() const override { return FloatRect(); } 47 FloatRect strokeBoundingBox() const override { return FloatRect(); }
48 virtual FloatRect paintInvalidationRectInLocalCoordinates() const override { return FloatRect(); } 48 FloatRect paintInvalidationRectInLocalCoordinates() const override { return FloatRect(); }
49 49
50 protected: 50 protected:
51 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 51 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
52 52
53 private: 53 private:
54 SVGGradientElement* gradientElement() const; 54 SVGGradientElement* gradientElement() const;
55 }; 55 };
56 56
57 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGGradientStop, isSVGGradientStop()); 57 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGGradientStop, isSVGGradientStop());
58 58
59 } 59 }
60 60
61 #endif // LayoutSVGGradientStop_h 61 #endif // LayoutSVGGradientStop_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGForeignObject.h ('k') | Source/core/layout/svg/LayoutSVGHiddenContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698