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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 ~SVGRenderingContext(); | 79 ~SVGRenderingContext(); |
80 | 80 |
81 // Used by all SVG renderers who apply clip/filter/etc. resources to the ren
derer content. | 81 // Used by all SVG renderers who apply clip/filter/etc. resources to the ren
derer content. |
82 void prepareToRenderSVGContent(RenderObject*, PaintInfo&); | 82 void prepareToRenderSVGContent(RenderObject*, PaintInfo&); |
83 bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepar
ed; } | 83 bool isRenderingPrepared() const { return m_renderingFlags & RenderingPrepar
ed; } |
84 | 84 |
85 static void renderSubtree(GraphicsContext*, RenderObject*); | 85 static void renderSubtree(GraphicsContext*, RenderObject*); |
86 | 86 |
87 static float calculateScreenFontSizeScalingFactor(const RenderObject*); | 87 static float calculateScreenFontSizeScalingFactor(const RenderObject*); |
88 static void calculateDeviceSpaceTransformation(const RenderObject*, AffineTr
ansform& absoluteTransform); | 88 static void calculateDeviceSpaceTransformation(const RenderObject*, AffineTr
ansform& absoluteTransform); |
89 static FloatRect clampedAbsoluteTargetRect(const FloatRect& absoluteTargetRe
ct); | |
90 static void clear2DRotation(AffineTransform&); | |
91 | 89 |
92 // Support for the buffered-rendering hint. | 90 // Support for the buffered-rendering hint. |
93 bool bufferForeground(OwnPtr<ImageBuffer>&); | 91 bool bufferForeground(OwnPtr<ImageBuffer>&); |
94 | 92 |
95 private: | 93 private: |
96 // To properly revert partially successful initializtions in the destructor,
we record all successful steps. | 94 // To properly revert partially successful initializtions in the destructor,
we record all successful steps. |
97 enum RenderingFlags { | 95 enum RenderingFlags { |
98 RenderingPrepared = 1, | 96 RenderingPrepared = 1, |
99 RestoreGraphicsContext = 1 << 1, | 97 RestoreGraphicsContext = 1 << 1, |
100 EndOpacityLayer = 1 << 2, | 98 EndOpacityLayer = 1 << 2, |
(...skipping 11 matching lines...) Expand all Loading... |
112 IntRect m_savedPaintRect; | 110 IntRect m_savedPaintRect; |
113 RenderSVGResourceFilter* m_filter; | 111 RenderSVGResourceFilter* m_filter; |
114 RenderSVGResourceClipper* m_clipper; | 112 RenderSVGResourceClipper* m_clipper; |
115 RenderSVGResourceClipper::ClipperState m_clipperState; | 113 RenderSVGResourceClipper::ClipperState m_clipperState; |
116 RenderSVGResourceMasker* m_masker; | 114 RenderSVGResourceMasker* m_masker; |
117 }; | 115 }; |
118 | 116 |
119 } // namespace blink | 117 } // namespace blink |
120 | 118 |
121 #endif // SVGRenderingContext_h | 119 #endif // SVGRenderingContext_h |
OLD | NEW |