| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. | 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 private: | 47 private: |
| 48 AffineTransform m_savedContentTransformation; | 48 AffineTransform m_savedContentTransformation; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 class SVGRenderingContext { | 51 class SVGRenderingContext { |
| 52 STACK_ALLOCATED(); | 52 STACK_ALLOCATED(); |
| 53 public: | 53 public: |
| 54 SVGRenderingContext(RenderObject& object, const PaintInfo& paintInfo) | 54 SVGRenderingContext(RenderObject& object, const PaintInfo& paintInfo) |
| 55 : m_object(&object) | 55 : m_object(&object) |
| 56 , m_paintInfo(paintInfo) | 56 , m_paintInfo(paintInfo) |
| 57 , m_originalPaintInfo(&paintInfo) |
| 57 , m_filter(nullptr) | 58 , m_filter(nullptr) |
| 58 , m_clipper(nullptr) | 59 , m_clipper(nullptr) |
| 59 , m_clipperState(RenderSVGResourceClipper::ClipperNotApplied) | 60 , m_clipperState(RenderSVGResourceClipper::ClipperNotApplied) |
| 60 , m_masker(nullptr) | 61 , m_masker(nullptr) |
| 61 #if ENABLE(ASSERT) | 62 #if ENABLE(ASSERT) |
| 62 , m_applyClipMaskAndFilterIfNecessaryCalled(false) | 63 , m_applyClipMaskAndFilterIfNecessaryCalled(false) |
| 63 #endif | 64 #endif |
| 64 { } | 65 { } |
| 65 | 66 |
| 66 ~SVGRenderingContext(); | 67 ~SVGRenderingContext(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 83 // Return true if no masking is necessary or if the mask is successfully app
lied. | 84 // Return true if no masking is necessary or if the mask is successfully app
lied. |
| 84 bool applyMaskIfNecessary(SVGResources*); | 85 bool applyMaskIfNecessary(SVGResources*); |
| 85 | 86 |
| 86 // Return true if no filtering is necessary or if the filter is successfully
applied. | 87 // Return true if no filtering is necessary or if the filter is successfully
applied. |
| 87 bool applyFilterIfNecessary(SVGResources*); | 88 bool applyFilterIfNecessary(SVGResources*); |
| 88 | 89 |
| 89 bool isIsolationInstalled() const; | 90 bool isIsolationInstalled() const; |
| 90 | 91 |
| 91 RawPtrWillBeMember<RenderObject> m_object; | 92 RawPtrWillBeMember<RenderObject> m_object; |
| 92 PaintInfo m_paintInfo; | 93 PaintInfo m_paintInfo; |
| 94 const PaintInfo* m_originalPaintInfo; |
| 93 RawPtrWillBeMember<RenderSVGResourceFilter> m_filter; | 95 RawPtrWillBeMember<RenderSVGResourceFilter> m_filter; |
| 94 RawPtrWillBeMember<RenderSVGResourceClipper> m_clipper; | 96 RawPtrWillBeMember<RenderSVGResourceClipper> m_clipper; |
| 95 RenderSVGResourceClipper::ClipperState m_clipperState; | 97 RenderSVGResourceClipper::ClipperState m_clipperState; |
| 96 RawPtrWillBeMember<RenderSVGResourceMasker> m_masker; | 98 RawPtrWillBeMember<RenderSVGResourceMasker> m_masker; |
| 97 OwnPtr<CompositingRecorder> m_compositingRecorder; | 99 OwnPtr<CompositingRecorder> m_compositingRecorder; |
| 98 OwnPtr<FloatClipRecorder> m_clipRecorder; | 100 OwnPtr<FloatClipRecorder> m_clipRecorder; |
| 99 OwnPtr<ClipPathRecorder> m_clipPathRecorder; | 101 OwnPtr<ClipPathRecorder> m_clipPathRecorder; |
| 100 #if ENABLE(ASSERT) | 102 #if ENABLE(ASSERT) |
| 101 bool m_applyClipMaskAndFilterIfNecessaryCalled; | 103 bool m_applyClipMaskAndFilterIfNecessaryCalled; |
| 102 #endif | 104 #endif |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace blink | 107 } // namespace blink |
| 106 | 108 |
| 107 #endif // SVGRenderingContext_h | 109 #endif // SVGRenderingContext_h |
| OLD | NEW |