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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.h

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o verride; 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 LayoutSVGResourceType resourceType() const override { return s_resourceType; } 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

Powered by Google App Engine
This is Rietveld 408576698