OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 class RenderSVGResourceContainer : public RenderSVGHiddenContainer, | 31 class RenderSVGResourceContainer : public RenderSVGHiddenContainer, |
32 public RenderSVGResource { | 32 public RenderSVGResource { |
33 public: | 33 public: |
34 explicit RenderSVGResourceContainer(SVGElement*); | 34 explicit RenderSVGResourceContainer(SVGElement*); |
35 virtual ~RenderSVGResourceContainer(); | 35 virtual ~RenderSVGResourceContainer(); |
36 | 36 |
37 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0; | 37 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0; |
38 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true) = 0; | 38 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true) = 0; |
39 | 39 |
40 virtual void layout() OVERRIDE; | 40 virtual void layout() override; |
41 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE FINAL; | 41 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride final; |
42 | 42 |
43 virtual bool isSVGResourceContainer() const OVERRIDE FINAL { return true; } | 43 virtual bool isSVGResourceContainer() const override final { return true; } |
44 | 44 |
45 template<class Renderer> | 45 template<class Renderer> |
46 Renderer* cast() | 46 Renderer* cast() |
47 { | 47 { |
48 if (Renderer::s_resourceType == resourceType()) | 48 if (Renderer::s_resourceType == resourceType()) |
49 return static_cast<Renderer*>(this); | 49 return static_cast<Renderer*>(this); |
50 | 50 |
51 return 0; | 51 return 0; |
52 } | 52 } |
53 | 53 |
(...skipping 24 matching lines...) Expand all Loading... |
78 | 78 |
79 static AffineTransform computeResourceSpaceTransform(RenderObject*, const Af
fineTransform& baseTransform, const SVGRenderStyle&, unsigned short resourceMode
); | 79 static AffineTransform computeResourceSpaceTransform(RenderObject*, const Af
fineTransform& baseTransform, const SVGRenderStyle&, unsigned short resourceMode
); |
80 | 80 |
81 bool m_isInLayout; | 81 bool m_isInLayout; |
82 | 82 |
83 private: | 83 private: |
84 friend class SVGResourcesCache; | 84 friend class SVGResourcesCache; |
85 void addClient(RenderObject*); | 85 void addClient(RenderObject*); |
86 void removeClient(RenderObject*); | 86 void removeClient(RenderObject*); |
87 | 87 |
88 virtual void willBeDestroyed() OVERRIDE FINAL; | 88 virtual void willBeDestroyed() override final; |
89 void registerResource(); | 89 void registerResource(); |
90 | 90 |
91 AtomicString m_id; | 91 AtomicString m_id; |
92 // Track global (markAllClientsForInvalidation) invals to avoid redundant cr
awls. | 92 // Track global (markAllClientsForInvalidation) invals to avoid redundant cr
awls. |
93 unsigned m_invalidationMask : 8; | 93 unsigned m_invalidationMask : 8; |
94 | 94 |
95 bool m_registered : 1; | 95 bool m_registered : 1; |
96 bool m_isInvalidating : 1; | 96 bool m_isInvalidating : 1; |
97 // 22 padding bits available | 97 // 22 padding bits available |
98 | 98 |
(...skipping 19 matching lines...) Expand all Loading... |
118 return container->cast<Renderer>(); | 118 return container->cast<Renderer>(); |
119 | 119 |
120 return 0; | 120 return 0; |
121 } | 121 } |
122 | 122 |
123 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain
er()); | 123 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain
er()); |
124 | 124 |
125 } | 125 } |
126 | 126 |
127 #endif | 127 #endif |
OLD | NEW |