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

Side by Side Diff: Source/core/layout/svg/LayoutSVGResourceMasker.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) Research In Motion Limited 2009-2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 17 matching lines...) Expand all
28 class SkPicture; 28 class SkPicture;
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class AffineTransform; 32 class AffineTransform;
33 class GraphicsContext; 33 class GraphicsContext;
34 34
35 class LayoutSVGResourceMasker final : public LayoutSVGResourceContainer { 35 class LayoutSVGResourceMasker final : public LayoutSVGResourceContainer {
36 public: 36 public:
37 explicit LayoutSVGResourceMasker(SVGMaskElement*); 37 explicit LayoutSVGResourceMasker(SVGMaskElement*);
38 virtual ~LayoutSVGResourceMasker(); 38 ~LayoutSVGResourceMasker() override;
39 39
40 virtual const char* name() const override { return "LayoutSVGResourceMasker" ; } 40 const char* name() const override { return "LayoutSVGResourceMasker"; }
41 41
42 virtual void removeAllClientsFromCache(bool markForInvalidation = true) over ride; 42 void removeAllClientsFromCache(bool markForInvalidation = true) override;
43 virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override; 43 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o verride;
44 44
45 FloatRect resourceBoundingBox(const LayoutObject*); 45 FloatRect resourceBoundingBox(const LayoutObject*);
46 46
47 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen t())->maskUnits()->currentValue()->enumValue(); } 47 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen t())->maskUnits()->currentValue()->enumValue(); }
48 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement (element())->maskContentUnits()->currentValue()->enumValue(); } 48 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement (element())->maskContentUnits()->currentValue()->enumValue(); }
49 49
50 static const LayoutSVGResourceType s_resourceType = MaskerResourceType; 50 static const LayoutSVGResourceType s_resourceType = MaskerResourceType;
51 virtual LayoutSVGResourceType resourceType() const override { return s_resou rceType; } 51 LayoutSVGResourceType resourceType() const override { return s_resourceType; }
52 52
53 PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const Flo atRect&, GraphicsContext*); 53 PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const Flo atRect&, GraphicsContext*);
54 54
55 private: 55 private:
56 void calculateMaskContentPaintInvalidationRect(); 56 void calculateMaskContentPaintInvalidationRect();
57 57
58 RefPtr<const SkPicture> m_maskContentPicture; 58 RefPtr<const SkPicture> m_maskContentPicture;
59 FloatRect m_maskContentBoundaries; 59 FloatRect m_maskContentBoundaries;
60 }; 60 };
61 61
62 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMasker, MaskerResourceTyp e); 62 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMasker, MaskerResourceTyp e);
63 63
64 } 64 }
65 65
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceMarker.h ('k') | Source/core/layout/svg/LayoutSVGResourcePaintServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698