| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 34 #include <wtf/OwnPtr.h> | 34 #include <wtf/OwnPtr.h> |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 struct ClipperData { | 38 struct ClipperData { |
| 39 WTF_MAKE_FAST_ALLOCATED; | 39 WTF_MAKE_FAST_ALLOCATED; |
| 40 public: | 40 public: |
| 41 OwnPtr<ImageBuffer> clipMaskImage; | 41 OwnPtr<ImageBuffer> clipMaskImage; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class RenderSVGResourceClipper : public RenderSVGResourceContainer { | 44 class RenderSVGResourceClipper FINAL : public RenderSVGResourceContainer { |
| 45 public: | 45 public: |
| 46 RenderSVGResourceClipper(SVGClipPathElement*); | 46 RenderSVGResourceClipper(SVGClipPathElement*); |
| 47 virtual ~RenderSVGResourceClipper(); | 47 virtual ~RenderSVGResourceClipper(); |
| 48 | 48 |
| 49 virtual const char* renderName() const { return "RenderSVGResourceClipper";
} | 49 virtual const char* renderName() const { return "RenderSVGResourceClipper";
} |
| 50 | 50 |
| 51 virtual void removeAllClientsFromCache(bool markForInvalidation = true); | 51 virtual void removeAllClientsFromCache(bool markForInvalidation = true); |
| 52 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); | 52 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); |
| 53 | 53 |
| 54 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode); | 54 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 void calculateClipContentRepaintRect(); | 71 void calculateClipContentRepaintRect(); |
| 72 | 72 |
| 73 FloatRect m_clipBoundaries; | 73 FloatRect m_clipBoundaries; |
| 74 HashMap<RenderObject*, ClipperData*> m_clipper; | 74 HashMap<RenderObject*, ClipperData*> m_clipper; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } | 77 } |
| 78 | 78 |
| 79 #endif | 79 #endif |
| 80 #endif | 80 #endif |
| OLD | NEW |